mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
Merge pull request #60 from feross/no-force-http-udp
server: rm check for http/udp option
This commit is contained in:
commit
86bcbfaab2
@ -36,9 +36,6 @@ function Server (opts) {
|
||||
EventEmitter.call(self)
|
||||
opts = opts || {}
|
||||
|
||||
if (opts.http === false && opts.udp === false)
|
||||
throw new Error('must start at least one type of server (http or udp)')
|
||||
|
||||
self._intervalMs = opts.interval
|
||||
? opts.interval
|
||||
: 10 * 60 * 1000 // 10 min
|
||||
|
Loading…
Reference in New Issue
Block a user