diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 63248413a..94e93ea79 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -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:= \ diff --git a/luci-app-passwall/root/usr/share/passwall/subscribe.lua b/luci-app-passwall/root/usr/share/passwall/subscribe.lua index a14a3d105..6816dd9b6 100755 --- a/luci-app-passwall/root/usr/share/passwall/subscribe.lua +++ b/luci-app-passwall/root/usr/share/passwall/subscribe.lua @@ -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