Skip to content

Commit b219338

Browse files
committed
delete listen ip
1 parent 99b70ee commit b219338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coder-base/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var apphandler = function( req, res, appdir ) {
131131
};
132132

133133
var startSSLRedirect = function() {
134-
http.createServer( redirectapp ).listen( config.httpListenPort, config.listenIP );
134+
http.createServer( redirectapp ).listen( config.httpListenPort );
135135
};
136136

137137
var startSSL = function() {
@@ -146,7 +146,7 @@ var startSSL = function() {
146146
}
147147

148148
if ( privateKey !== "" && certificate !== "" ) {
149-
https.createServer({ key: privateKey, cert: certificate }, sslapp).listen( config.listenPort, config.listenIP );
149+
https.createServer({ key: privateKey, cert: certificate }, sslapp).listen( config.listenPort );
150150
} else {
151151
var spawn = require('child_process').spawn;
152152

@@ -170,7 +170,7 @@ var startSSL = function() {
170170
var loadServer = function() {
171171
privateKey = fs.readFileSync('certs/server.key').toString();
172172
certificate = fs.readFileSync('certs/server.cert').toString();
173-
https.createServer({ key: privateKey, cert: certificate }, sslapp).listen( config.listenPort, config.listenIP );
173+
https.createServer({ key: privateKey, cert: certificate }, sslapp).listen( config.listenPort );
174174
};
175175

176176
genSelfSignedCert();

0 commit comments

Comments
 (0)