Skip to content

Commit 9d8c37d

Browse files
authored
Update index.js
1 parent dc58452 commit 9d8c37d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ if(process.env.MTLS_ENABLE){
197197
}
198198
}
199199

200-
var httpServer = http.createServer(app).listen(process.env.HTTP_PORT || 8080);
201-
var httpsServer = https.createServer(sslOpts,app).listen(process.env.HTTPS_PORT || 8443);
200+
var httpServer = http.createServer(app).listen(process.env.HTTP_PORT || 8080, '0.0.0.0');
201+
var httpsServer = https.createServer(sslOpts,app).listen(process.env.HTTPS_PORT || 8443, '0.0.0.0');
202202
console.log(`Listening on ports ${process.env.HTTP_PORT || 8080} for http, and ${process.env.HTTPS_PORT || 8443} for https.`);
203203

204204
let calledClose = false;

0 commit comments

Comments
 (0)