diff --git a/net/shadowsocks-libev/Makefile b/net/shadowsocks-libev/Makefile index 7ef1706d3..4fa49a956 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.3.5 -PKG_RELEASE:=5 +PKG_RELEASE:=6 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/ss-rules/chain.uc b/net/shadowsocks-libev/files/ss-rules/chain.uc index a378e770e..3047f1663 100644 --- a/net/shadowsocks-libev/files/ss-rules/chain.uc +++ b/net/shadowsocks-libev/files/ss-rules/chain.uc @@ -52,10 +52,14 @@ if (proto == "tcp") { redir_port = o_redir_udp_port; if (system(" set -o errexit - while ip rule del fwmark 1 lookup 100 2>/dev/null; do true; done - ip rule add fwmark 1 lookup 100 - ip route flush table 100 2>/dev/null || true - ip route add local default dev lo table 100 + iprr() { + while ip $1 rule del fwmark 1 lookup 100 2>/dev/null; do true; done + ip $1 rule add fwmark 1 lookup 100 + ip $1 route flush table 100 2>/dev/null || true + ip $1 route add local default dev lo table 100 + } + iprr -4 + iprr -6 ") != 0) { return ; }