shadowsocks-libev: flush ipv6 ss-rules on service stop

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2019-02-16 07:37:24 +00:00
parent 0745dc5d6c
commit 40e7e241a3
2 changed files with 5 additions and 2 deletions

View 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)

View 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"
}