add blacklist IP and GFWlist can work at the same time

This commit is contained in:
coolsnowwolf 2018-10-19 20:36:36 +08:00
parent 49f2458eae
commit 2aeac95bf5
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus
LUCI_DEPENDS:=+shadowsocksr-libev +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=17
PKG_RELEASE:=18
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -14,7 +14,7 @@ function f.handle(self, state, data)
if state == FORM_VALID then
if data.conf then
fs.writefile(conffile, data.conf:gsub("\r\n", "\n"))
luci.sys.call("/usr/share/shadowsocksr/gfw2ipset.sh && /etc/init.d/dnsmasq restart && ipset flush gfwlist")
luci.sys.call("/usr/share/shadowsocksr/gfw2ipset.sh && /etc/init.d/shadowsocksr restart")
end
end
return true