luci-app-mihomo: sync upstream

last commit: 39d4052f22
This commit is contained in:
gitea-action 2024-12-01 13:30:21 +08:00
parent eac1777d06
commit 5c68bcd2fb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_VERSION:=1.13.1 PKG_VERSION:=1.13.2
LUCI_TITLE:=LuCI Support for mihomo LUCI_TITLE:=LuCI Support for mihomo
LUCI_DEPENDS:=+luci-base +mihomo LUCI_DEPENDS:=+luci-base +mihomo

View File

@ -105,7 +105,7 @@ return baseclass.extend({
if (running) { if (running) {
const uiName = uci.get('mihomo', 'mixin', 'ui_name'); const uiName = uci.get('mihomo', 'mixin', 'ui_name');
const apiPort = uci.get('mihomo', 'mixin', 'api_port'); const apiPort = uci.get('mihomo', 'mixin', 'api_port');
const apiSecret = uci.get('mihomo', 'mixin', 'api_secret'); const apiSecret = encodeURIComponent(uci.get('mihomo', 'mixin', 'api_secret'));
let url; let url;
if (uiName) { if (uiName) {
url = `http://${window.location.hostname}:${apiPort}/ui/${uiName}/?host=${window.location.hostname}&hostname=${window.location.hostname}&port=${apiPort}&secret=${apiSecret}`; url = `http://${window.location.hostname}:${apiPort}/ui/${uiName}/?host=${window.location.hostname}&hostname=${window.location.hostname}&port=${apiPort}&secret=${apiSecret}`;