mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(server) start
This commit is contained in:
parent
81621def08
commit
6eaadb195f
1 changed files with 3 additions and 4 deletions
|
|
@ -135,15 +135,14 @@
|
|||
});
|
||||
});
|
||||
|
||||
redirectServer.listen(lPort, lIP);
|
||||
redirectServer.listen(port, ip);
|
||||
|
||||
Server = https.createServer(lSSL, respond);
|
||||
Server.on('error', function (error) {
|
||||
Util.log('Could not use https port: ' + lSSLPort);
|
||||
Util.log(error);
|
||||
Util.log(error, '\nCould not use https port: ' + lSSLPort);
|
||||
redirectServer.close();
|
||||
Util.log('* Redirection http -> https removed');
|
||||
lHTTPServer();
|
||||
httpServer();
|
||||
});
|
||||
|
||||
sockets(Server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue