mirror of
https://github.com/kenzok8/small-package
synced 2025-01-05 11:36:47 +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
|
||||
|
||||
PKG_NAME:=alist
|
||||
PKG_VERSION:=3.20.1
|
||||
PKG_VERSION:=3.21.0
|
||||
PKG_WEB_VERSION:=3.20.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
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_FILE:=LICENSE
|
||||
|
@ -23,10 +23,13 @@ o = s:option(DynamicList, "address", translate("Bind address"))
|
||||
o.datatype = "list(ipaddrport(1))"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "interface", translate("Source interface"))
|
||||
local interfaces = luci.sys.exec("ls -l /sys/class/net/ 2>/dev/null |awk '{print $9}' 2>/dev/null")
|
||||
for interface in string.gmatch(interfaces, "%S+") do
|
||||
o:value(interface)
|
||||
o = s:option(ListValue, "network", translate("Source interface"))
|
||||
local x = luci.model.uci.cursor()
|
||||
local net = x:get_all("network")
|
||||
for interface, config in pairs(net) do
|
||||
if interface ~= "loopback" and config.proto ~= nil then
|
||||
o:value(interface)
|
||||
end
|
||||
end
|
||||
o:value("", translate("Disable"))
|
||||
o.default = ""
|
||||
|
Loading…
Reference in New Issue
Block a user