mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
fix config load (#2584)
This commit is contained in:
parent
aa71afabfa
commit
295602fcb7
@ -14,7 +14,7 @@ LUCI_TITLE:=LuCI support for BaiduPCS-Go
|
||||
LUCI_DEPENDS:=+baidupcs-web +wget +openssl-util
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
PKG_MAINTAINER:=<https://github.com/KFERMercer/luci-app-baidupcs-web>
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
@ -24,7 +24,7 @@ function openClient() {
|
||||
var pathName = window.document.location.pathname;
|
||||
var pos = curWwwPath.indexOf(pathName);
|
||||
var localhostPath = curWwwPath.substring(0, pos);
|
||||
var clientPort = window.document.querySelector("#cbid\\.baidupcs-web\\.config\\.port").value
|
||||
var clientPort = window.document.getElementById("cbid.baidupcs-web.config.port").value
|
||||
var url = "http:" + localhostPath.substring(window.location.protocol.length) + ":" + clientPort;
|
||||
window.open(url)
|
||||
};
|
||||
|
@ -6,10 +6,10 @@ STOP=10
|
||||
enabled="$(uci get baidupcs-web.config.enabled)"
|
||||
port="$(uci get baidupcs-web.config.port)"
|
||||
download_dir="$(uci get baidupcs-web.config.download_dir)"
|
||||
max_download_rate="$(uci get baidupcs-web.config.max_download_rate)"
|
||||
max_upload_rate="$(uci get baidupcs-web.config.max_upload_rate)"
|
||||
max_download_load="$(uci get baidupcs-web.config.max_download_load)"
|
||||
max_parallel="$(uci get baidupcs-web.config.max_parallel)"
|
||||
max_download_rate="$(uci get baidupcs-web.config.max_download_rate || echo '0')"
|
||||
max_upload_rate="$(uci get baidupcs-web.config.max_upload_rate || echo '0')"
|
||||
max_download_load="$(uci get baidupcs-web.config.max_download_load || echo '1')"
|
||||
max_parallel="$(uci get baidupcs-web.config.max_parallel || echo '8')"
|
||||
|
||||
start() {
|
||||
stop
|
||||
|
Loading…
Reference in New Issue
Block a user