Skip to content

Commit

Permalink
Fix Metacubexd Control Panel link (#3982)
Browse files Browse the repository at this point in the history
* Fix Metacubexd Control Panel link

* Update Makefile

* Fix Metacubexd Control Panel link

Co-authored-by: airwish <[email protected]>

---------

Co-authored-by: airwish <[email protected]>
  • Loading branch information
xuanranran and ittuann authored Aug 16, 2024
1 parent 57c85dd commit e955b00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions luci-app-openclash/luasrc/view/openclash/status.htm
Original file line number Diff line number Diff line change
Expand Up @@ -854,14 +854,14 @@
btn.disabled = true;
btn.value = '<%:Metacubexd Control Panel%>';
if (status.daip && window.location.hostname == status.daip) {
url9='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/metacubexd/#/?hostname='+ window.location.hostname + '&port=' + status.cn_port + '&secret=' + status.dase +'"%>';
url9='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/metacubexd/#/setup?hostname='+ window.location.hostname + '&port=' + status.cn_port + '&secret=' + status.dase +'"%>';
}
else if (status.daip && window.location.hostname != status.daip && status.db_foward_domain && status.db_foward_port) {
var ui_proto = status.db_forward_ssl == 0 ? 'http://' : 'https://';
url9='<%="'+ui_proto+status.db_foward_domain+':'+status.db_foward_port+'/ui/metacubexd/#/?hostname='+ status.db_foward_domain + '&port=' + status.db_foward_port + '&secret=' + status.dase +'"%>';
url9='<%="'+ui_proto+status.db_foward_domain+':'+status.db_foward_port+'/ui/metacubexd/#/setup?hostname='+ status.db_foward_domain + '&port=' + status.db_foward_port + '&secret=' + status.dase +'"%>';
}
else {
url9='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/metacubexd/"%>';
url9='<%="http://'+window.location.hostname+':'+status.cn_port+'/ui/metacubexd/#/"%>';
}
winOpen(url9);
return false;
Expand Down

0 comments on commit e955b00

Please sign in to comment.