refactor(server) start

This commit is contained in:
coderaiser 2014-02-24 11:01:23 -05:00
parent 81621def08
commit 6eaadb195f

View file

@ -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);