support starting udp and http on different ports

This commit is contained in:
Feross Aboukhadijeh 2014-07-05 14:41:22 -07:00
parent 3e6832ab29
commit f21ab25347

View File

@ -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) {