mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 03:16:24 +00:00
support starting udp and http on different ports
This commit is contained in:
parent
3e6832ab29
commit
f21ab25347
@ -69,10 +69,10 @@ Server.prototype.listen = function (port, onlistening) {
|
||||
}
|
||||
|
||||
self._httpServer && tasks.push(function (cb) {
|
||||
self._httpServer.listen(port, cb)
|
||||
self._httpServer.listen(port.http || port, cb)
|
||||
})
|
||||
self._udpServer && tasks.push(function (cb) {
|
||||
self._udpServer.bind(port, cb)
|
||||
self._udpServer.bind(port.udp || port, cb)
|
||||
})
|
||||
|
||||
parallel(tasks, function (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user