use internal port
This commit is contained in:
parent
6ecb868ae1
commit
9bb093fd4f
|
@ -42,14 +42,14 @@ module.exports.create = function (opts) {
|
||||||
process.nextTick(function () {
|
process.nextTick(function () {
|
||||||
results.plainServers.forEach(function (plainServer) {
|
results.plainServers.forEach(function (plainServer) {
|
||||||
plainServer.listen(
|
plainServer.listen(
|
||||||
plainServer.__plainPort.port
|
plainServer.__plainPort.internal || plainServer.__plainPort.port
|
||||||
, plainServer.__plainPort.address || '0.0.0.0'
|
, plainServer.__plainPort.address || '0.0.0.0'
|
||||||
, onListen
|
, onListen
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
results.tlsServers.forEach(function (tlsServer) {
|
results.tlsServers.forEach(function (tlsServer) {
|
||||||
tlsServer.listen(
|
tlsServer.listen(
|
||||||
tlsServer.__tlsPort.port
|
tlsServer.__tlsPort.internal || tlsServer.__tlsPort.port
|
||||||
, tlsServer.__tlsPort.address || '0.0.0.0'
|
, tlsServer.__tlsPort.address || '0.0.0.0'
|
||||||
, onListen
|
, onListen
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue