Browse Source

shadowsocks-libev: ss-rules: simplify grep_af

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

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

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


+ 3
- 3
net/shadowsocks-libev/files/ss-rules View File

@ -101,7 +101,7 @@ o_src_default=bypass
o_dst_default=bypass
o_local_default=bypass
alias grep_af="sed -nre '/^([0-9]+\.){3}[0-9]+$/p'"
alias grep_af="sed -ne '/:/!p'"
o_dst_bypass_="$o_dst_bypass4_"
if [ -n "$o_use_ipv6" ]; then
alias grep_af="sed -ne /:/p"
@ -183,8 +183,8 @@ ss_rules_ipset_mkadd() {
local i
for i in $*; do
echo "$i"
done | grep_af | sed -e "s/^/add $setname /"
echo "add $setname $i"
done | grep_af
}
ss_rules_iptchains_init() {


Loading…
Cancel
Save