diff --git a/luci-app-openclash/luasrc/view/openclash/status.htm b/luci-app-openclash/luasrc/view/openclash/status.htm index 82d2afaa9d..b5e6c75c5d 100644 --- a/luci-app-openclash/luasrc/view/openclash/status.htm +++ b/luci-app-openclash/luasrc/view/openclash/status.htm @@ -372,7 +372,7 @@ XHR.get('<%=luci.dispatcher.build_url("admin", "services", "openclash", "status")%>', status.cn_port, function(x, status) { btn.disabled = true; btn.value = '<%:Open Panel%>'; - url2='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/?host='+ (status.daip|window.location.hostname) + '&port=' + (window.location.port || status.cn_port) + '&secret=' + status.dase +'"%>'; + url2='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/?host='+ (window.location.hostname || status.daip) + '&port=' + (window.location.port || status.cn_port) + '&secret=' + status.dase +'"%>'; winOpen(url2); return false; });