修复打开FRPS按钮无法使用的问题

This commit is contained in:
WindyMadman 2024-08-31 16:06:27 +08:00
parent 6cd534b30b
commit c858ede656

View File

@ -13,7 +13,7 @@ XHR.poll(3, '<%=url([[admin]], [[services]], [[frps]], [[status]])%>', null,
);
function openwebui(){
var url = window.location.host+":<%=luci.sys.exec("uci -q get frps.main.dashboard_port"):gsub("^%s*(.-)%s*$", "%1")%>";
var url = window.location.host+":<%=luci.sys.exec("uci -q get frps.main.webserver_port"):gsub("^%s*(.-)%s*$", "%1")%>";
window.open('http://'+url,'target','');
}
//]]>