mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
e506f90f89
commit
4f2aef02cd
1 changed files with 3 additions and 1 deletions
|
|
@ -99,9 +99,11 @@
|
|||
if (lConfig.server) {
|
||||
if(lSSL){
|
||||
var lRedirectServer = http.createServer( function(pReq, pRes){
|
||||
var lParsedUrl = URL.parse(pReq.url),
|
||||
lHost = lParsedUrl.hostname;
|
||||
main.redirect({
|
||||
response: pRes,
|
||||
url: 'https://' + pReq.url
|
||||
url: 'https://' + lHost + pReq.url
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue