From ce2e94d2e5ec9fa164864efaecfd1242d5f2f75c Mon Sep 17 00:00:00 2001 From: xiaorouji <60100640+xiaorouji@users.noreply.github.com> Date: Sat, 2 Sep 2023 18:52:05 +0800 Subject: [PATCH] luci: fix https://github.com/xiaorouji/openwrt-passwall/issues/2735 --- luci-app-passwall/Makefile | 2 +- luci-app-passwall/root/usr/share/passwall/subscribe.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 56aa3d4b4..63248413a 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-2 +PKG_VERSION:=4.69-3 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 4965f2332..a14a3d105 100755 --- a/luci-app-passwall/root/usr/share/passwall/subscribe.lua +++ b/luci-app-passwall/root/usr/share/passwall/subscribe.lua @@ -897,7 +897,7 @@ local function truncate_nodes(add_from) end config.set(config) else - if config.currentNode.add_mode == "2" then + if config.currentNode and config.currentNode.add_mode == "2" then if add_from then if config.currentNode.add_from and config.currentNode.add_from == add_from then config.set(config, "nil")