use internal port

This commit is contained in:
AJ ONeal 2015-12-30 03:42:44 +00:00
parent 6ecb868ae1
commit 9bb093fd4f
1 changed files with 2 additions and 2 deletions

View File

@ -42,14 +42,14 @@ module.exports.create = function (opts) {
process.nextTick(function () {
results.plainServers.forEach(function (plainServer) {
plainServer.listen(
plainServer.__plainPort.port
plainServer.__plainPort.internal || plainServer.__plainPort.port
, plainServer.__plainPort.address || '0.0.0.0'
, onListen
);
});
results.tlsServers.forEach(function (tlsServer) {
tlsServer.listen(
tlsServer.__tlsPort.port
tlsServer.__tlsPort.internal || tlsServer.__tlsPort.port
, tlsServer.__tlsPort.address || '0.0.0.0'
, onListen
);