Browse Source

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

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
lilik-openwrt-22.03
Yousong Zhou 6 years ago
parent
commit
40e7e241a3
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      net/shadowsocks-libev/Makefile
  2. +4
    -1
      net/shadowsocks-libev/files/shadowsocks-libev.init

+ 1
- 1
net/shadowsocks-libev/Makefile View File

@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
# #
PKG_NAME:=shadowsocks-libev PKG_NAME:=shadowsocks-libev
PKG_VERSION:=3.2.3 PKG_VERSION:=3.2.3
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)


+ 4
- 1
net/shadowsocks-libev/files/shadowsocks-libev.init View File

@ -199,7 +199,10 @@ start_service() {
stop_service() { stop_service() {
local bin="$ss_bindir/ss-rules" local bin="$ss_bindir/ss-rules"
[ -x "$bin" ] && "$bin" -f
[ -x "$bin" ] && {
"$bin" -f
"$bin" -6 -f
}
rm -rf "$ss_confdir" rm -rf "$ss_confdir"
} }


Loading…
Cancel
Save