shadowsocks-libev: flush ipv6 ss-rules on service stop
authorYousong Zhou <yszhou4tech@gmail.com>
Sat, 16 Feb 2019 07:37:24 +0000 (07:37 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 16 Feb 2019 07:38:13 +0000 (07:38 +0000)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init

index 0d0dc7aa123514e7f88a2541a9c86939fcec6581..970a41a07f99443070d313d29cbcb9f89704790d 100644 (file)
@@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
 #
 PKG_NAME:=shadowsocks-libev
 PKG_VERSION:=3.2.3
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
index 81b209c5c2767db0d178f1f16acdec9291a2a788..9ab1051c871b544eaf82feede020266af2b3611f 100644 (file)
@@ -199,7 +199,10 @@ start_service() {
 stop_service() {
        local bin="$ss_bindir/ss-rules"
 
-       [ -x "$bin" ] && "$bin" -f
+       [ -x "$bin" ] && {
+               "$bin" -f
+               "$bin" -6 -f
+       }
        rm -rf "$ss_confdir"
 }