mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(server) createRedirect: add sslPort
This commit is contained in:
parent
673af7c7f6
commit
2c5b82acca
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@
|
|||
if (!ssl)
|
||||
createServer(port, ip, HTTP);
|
||||
else {
|
||||
createRedirect(port, ip, HTTPS);
|
||||
createRedirect(port, ip, HTTPS, sslPort);
|
||||
|
||||
createServer(sslPort, ip, HTTP, ssl, function() {
|
||||
Util.log('Could not use https port: ' + sslPort);
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
function createRedirect(port, ip, protocol) {
|
||||
function createRedirect(port, ip, protocol, sslPort) {
|
||||
var server = function(req, res) {
|
||||
var url,
|
||||
host = req.headers.host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue