From: Yousong Zhou Date: Sat, 16 Feb 2019 07:37:24 +0000 (+0000) Subject: shadowsocks-libev: flush ipv6 ss-rules on service stop X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=40e7e241a3eb62475719f83fbf6c53b679e7ddff;p=feed%2Fpackages.git shadowsocks-libev: flush ipv6 ss-rules on service stop Signed-off-by: Yousong Zhou --- diff --git a/net/shadowsocks-libev/Makefile b/net/shadowsocks-libev/Makefile index 0d0dc7aa12..970a41a07f 100644 --- a/net/shadowsocks-libev/Makefile +++ b/net/shadowsocks-libev/Makefile @@ -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) diff --git a/net/shadowsocks-libev/files/shadowsocks-libev.init b/net/shadowsocks-libev/files/shadowsocks-libev.init index 81b209c5c2..9ab1051c87 100644 --- a/net/shadowsocks-libev/files/shadowsocks-libev.init +++ b/net/shadowsocks-libev/files/shadowsocks-libev.init @@ -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" }