update 2023-07-11 23:36:55

This commit is contained in:
github-actions[bot] 2023-07-11 23:36:55 +08:00
parent 8ac98f4e18
commit c6f17d6b35
2 changed files with 9 additions and 6 deletions

View File

@ -7,13 +7,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=alist PKG_NAME:=alist
PKG_VERSION:=3.20.1 PKG_VERSION:=3.21.0
PKG_WEB_VERSION:=3.20.0 PKG_WEB_VERSION:=3.20.0
PKG_RELEASE:=2 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c30e6dfdb0e39615bfcecb17da3a9a643054c6f0eb819d5f45148d2cd0ce2955 PKG_HASH:=a265b9c0ed662b52d442802f7dfd90fc1222e96132106a302da2c3f02cc12732
PKG_LICENSE:=GPL-3.0 PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILE:=LICENSE PKG_LICENSE_FILE:=LICENSE

View File

@ -23,10 +23,13 @@ o = s:option(DynamicList, "address", translate("Bind address"))
o.datatype = "list(ipaddrport(1))" o.datatype = "list(ipaddrport(1))"
o.rmempty = false o.rmempty = false
o = s:option(ListValue, "interface", translate("Source interface")) o = s:option(ListValue, "network", translate("Source interface"))
local interfaces = luci.sys.exec("ls -l /sys/class/net/ 2>/dev/null |awk '{print $9}' 2>/dev/null") local x = luci.model.uci.cursor()
for interface in string.gmatch(interfaces, "%S+") do local net = x:get_all("network")
for interface, config in pairs(net) do
if interface ~= "loopback" and config.proto ~= nil then
o:value(interface) o:value(interface)
end
end end
o:value("", translate("Disable")) o:value("", translate("Disable"))
o.default = "" o.default = ""