From c6f17d6b35c78c5c64e72f31485a7081a407acab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 23:36:55 +0800 Subject: [PATCH] update 2023-07-11 23:36:55 --- alist/Makefile | 4 ++-- luci-app-msd_lite/luasrc/model/cbi/msd_lite.lua | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/alist/Makefile b/alist/Makefile index f1c3f836d..2189c1e72 100644 --- a/alist/Makefile +++ b/alist/Makefile @@ -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 diff --git a/luci-app-msd_lite/luasrc/model/cbi/msd_lite.lua b/luci-app-msd_lite/luasrc/model/cbi/msd_lite.lua index 508055bfe..af581a5d8 100644 --- a/luci-app-msd_lite/luasrc/model/cbi/msd_lite.lua +++ b/luci-app-msd_lite/luasrc/model/cbi/msd_lite.lua @@ -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 = ""