Skip to content

Commit 86bcbfa

Browse files
committed
Merge pull request webtorrent#60 from feross/no-force-http-udp
server: rm check for http/udp option
2 parents 424bc3c + 138bdb8 commit 86bcbfa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ function Server (opts) {
3636
EventEmitter.call(self)
3737
opts = opts || {}
3838

39-
if (opts.http === false && opts.udp === false)
40-
throw new Error('must start at least one type of server (http or udp)')
41-
4239
self._intervalMs = opts.interval
4340
? opts.interval
4441
: 10 * 60 * 1000 // 10 min

0 commit comments

Comments
 (0)