luci: fix subscribe script typo

This commit is contained in:
xiaorouji 2023-09-03 01:10:19 +08:00 committed by sbwml
parent ce2e94d2e5
commit 3a065361bb
2 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=4.69-3
PKG_VERSION:=4.69-4
PKG_RELEASE:=
PKG_CONFIG_DEPENDS:= \

View File

@ -307,8 +307,10 @@ do
end
end
else
if v.currentNode == nil and v.delete then
v.delete()
if v.currentNode == nil then
if v.delete then
v.delete()
end
CONFIG[k] = nil
end
end
@ -1037,7 +1039,7 @@ local function select_node(nodes, config)
config.set(config, server)
end
else
config.set(config, nil)
config.set(config, "nil")
end
end