luci-app-qbittorrent: fix get port

This commit is contained in:
CN_SZTL 2020-03-21 22:01:58 +08:00
parent 954e9cbd1c
commit 10da1d9fc0
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -14,7 +14,7 @@ XHR.poll(3, '<%=url([[admin]], [[nas]], [[qBittorrent]], [[status]])%>', null,
);
function openwebui(){
var url = window.location.host+":<%=luci.sys.exec("uci -q get qbittorrent.config.port"):gsub("^%s*(.-)%s*$", "%1")%>";
var url = window.location.host+":<%=luci.sys.exec("uci -q get qbittorrent.@qbittorrent[0].port"):gsub("^%s*(.-)%s*$", "%1")%>";
window.open('http://'+url,'target','');
};
//]]>