From 40e7e241a3eb62475719f83fbf6c53b679e7ddff Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Sat, 16 Feb 2019 07:37:24 +0000 Subject: [PATCH] shadowsocks-libev: flush ipv6 ss-rules on service stop Signed-off-by: Yousong Zhou --- net/shadowsocks-libev/Makefile | 2 +- net/shadowsocks-libev/files/shadowsocks-libev.init | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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" } -- 2.30.2