diff --git a/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js b/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js index b359947..bea0372 100644 --- a/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js +++ b/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js @@ -68,7 +68,9 @@ function smartdnsRenderStatus(res) { renderHTML += "SmartDNS - " + _("RUNNING") + ""; if (uiEnable === '1') { - var uiLink = "http://" + window.location.hostname + ":" + uiPort + "/"; + var protocol = window.location.protocol; + var hostname = window.location.hostname; + var uiLink = protocol + "//" + hostname + ":" + uiPort; renderHTML += "  " + _("Open the WebUI") + ""; } } else {