Skip to content

Commit f21ab25

Browse files
committed
support starting udp and http on different ports
1 parent 3e6832a commit f21ab25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ Server.prototype.listen = function (port, onlistening) {
6969
}
7070

7171
self._httpServer && tasks.push(function (cb) {
72-
self._httpServer.listen(port, cb)
72+
self._httpServer.listen(port.http || port, cb)
7373
})
7474
self._udpServer && tasks.push(function (cb) {
75-
self._udpServer.bind(port, cb)
75+
self._udpServer.bind(port.udp || port, cb)
7676
})
7777

7878
parallel(tasks, function (err) {

0 commit comments

Comments
 (0)