Skip to content

Commit

Permalink
Fix url for dashboard (vernesong#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouPatrickstar authored Jul 6, 2021
1 parent 0d84cc6 commit 46e6b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-openclash/luasrc/view/openclash/status.htm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 46e6b3b

Please sign in to comment.