update 2026-05-20 18:46:21

This commit is contained in:
action 2026-05-20 18:46:21 +08:00
parent 4697d00834
commit 307e638681
3 changed files with 41 additions and 6 deletions

View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for ddnsto
LUCI_DEPENDS:=+ddnsto +block-mount
LUCI_PKGARCH:=all
PKG_VERSION:=3.2.0-r5
PKG_VERSION:=4.0.3-r1
PKG_RELEASE:=
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -1,9 +1,9 @@
--wulishui <wulishui@gmail.com> ,20200911
--jjm2473 <jjm2473@gmail.com> ,20210127
local m, s
local m, s, o
m = Map("ddnsto", translate("DDNS.to"), translate("DDNS.to is a reverse proxy.")
m = Map("ddnsto", translate("DDNS.to"), translate("DDNS.to is a reverse proxy service.")
.. " <a href=\"https://www.ddnsto.com/\" onclick=\"void(0)\" target=\"_blank\">"
.. translate("Official Website")
.. "</a>")
@ -18,6 +18,41 @@ s:option(Flag, "enabled", translate("Enable")).rmempty=false
s:option(Value, "token", translate("Token")).rmempty=false
o = s:option(Value, "index", translate("Device Index"))
o.default = "0"
o.datatype = "uinteger"
o.rmempty = false
o = s:option(Flag, "logger", translate("Enable Logging"))
o.default = "0"
o.rmempty = false
-- WebDAV/File Sharing settings
s2=m:section(TypedSection, "ddnsto", translate("WebDAV File Sharing"))
s2.addremove=false
s2.anonymous=true
o = s2:option(Flag, "feat_enabled", translate("Enable WebDAV"))
o.default = "0"
o.rmempty = false
o = s2:option(Value, "feat_port", translate("WebDAV Port"))
o.default = "3033"
o.datatype = "port"
o.rmempty = false
o:depends("feat_enabled", "1")
o = s2:option(Value, "feat_username", translate("Username"))
o.rmempty = false
o:depends("feat_enabled", "1")
o = s2:option(Value, "feat_password", translate("Password"))
o.password = true
o.rmempty = false
o:depends("feat_enabled", "1")
o = s2:option(Value, "feat_disk_path_selected", translate("Shared Path"))
o.rmempty = false
o:depends("feat_enabled", "1")
return m

File diff suppressed because one or more lines are too long