From 8d0ffc9f8ec19f776d5baf287e9ef8ed5d94fe71 Mon Sep 17 00:00:00 2001 From: bgme Date: Tue, 5 Aug 2025 01:24:06 +0000 Subject: [PATCH] Squashed 'luci-app-smartdns/' changes from e634b6f..26e7e29 26e7e29 luci: Fix the issue of logging in for non-IP addresses. git-subtree-dir: luci-app-smartdns git-subtree-split: 26e7e2973c21fec8b35266073ef7cf8bc2ac0396 --- htdocs/luci-static/resources/view/smartdns/smartdns.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/luci-static/resources/view/smartdns/smartdns.js b/htdocs/luci-static/resources/view/smartdns/smartdns.js index b359947..bea0372 100644 --- a/htdocs/luci-static/resources/view/smartdns/smartdns.js +++ b/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 {