mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 13:27:36 +08:00
update 2023-07-11 23:36:55
This commit is contained in:
parent
8ac98f4e18
commit
c6f17d6b35
@ -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
|
||||||
|
@ -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")
|
||||||
o:value(interface)
|
for interface, config in pairs(net) do
|
||||||
|
if interface ~= "loopback" and config.proto ~= nil then
|
||||||
|
o:value(interface)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
o:value("", translate("Disable"))
|
o:value("", translate("Disable"))
|
||||||
o.default = ""
|
o.default = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user