From 3a065361bbfa117a43d0783605fc702c3db147c3 Mon Sep 17 00:00:00 2001 From: xiaorouji <60100640+xiaorouji@users.noreply.github.com> Date: Sun, 3 Sep 2023 01:10:19 +0800 Subject: [PATCH] luci: fix subscribe script typo --- luci-app-passwall/Makefile | 2 +- luci-app-passwall/root/usr/share/passwall/subscribe.lua | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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