diff --git a/sd-card/html/gethost.js b/sd-card/html/gethost.js index 349a6bec..d838b629 100644 --- a/sd-card/html/gethost.js +++ b/sd-card/html/gethost.js @@ -20,7 +20,7 @@ function getbasepath(){ } else { - host = "http://" + host; + host = window.location.protocol + "//" + host; if (window.location.port != "") { host = host + ":" + window.location.port; }