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