From 852650f92378c285bb7d9362d09ff39a9352e6d1 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 22 Oct 2018 19:52:33 +0800 Subject: [PATCH] reduce ipset re-add ip warnings --- package/lean/luci-app-ssr-plus/Makefile | 2 +- package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index 9cff2f071..70dbae32a 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget LUCI_PKGARCH:=all PKG_VERSION:=1 -PKG_RELEASE:=23 +PKG_RELEASE:=25 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules b/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules index 0e24a18b1..3c907ba92 100755 --- a/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules +++ b/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules @@ -78,7 +78,7 @@ EOF $IPT -A SS_SPEC_WAN_AC -j SS_SPEC_WAN_FW else ipset -N gfwlist hash:net 2>/dev/null - for ip in $WAN_FW_IP; do ipset add gfwlist $ip ; done + for ip in $WAN_FW_IP; ipset -! add gfwlist $ip ; done $IPT -N SS_SPEC_WAN_AC $IPT -A SS_SPEC_WAN_AC -m set --match-set gfwlist dst -j SS_SPEC_WAN_FW