shadowsocks-libev: ss-rules: query resolveip only for ipv4 addresses
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 30 Aug 2017 09:38:28 +0000 (17:38 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 30 Aug 2017 09:40:05 +0000 (17:40 +0800)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/ss-rules

index d79693f7aff0228fa884ef28851687a982ef1ae7..a34d1d3124832cdbe9c2f9d241e4a1c0c1395650 100644 (file)
@@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
 #
 PKG_NAME:=shadowsocks-libev
 PKG_VERSION:=3.0.8
-PKG_RELEASE:=12
+PKG_RELEASE:=13
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
index 3c83591fe646114a69eca71fde8c3afbef6d6ed5..29de5953876ddece9c41ba4eea9e5bbee12433f0 100755 (executable)
@@ -112,7 +112,7 @@ ss_rules_parse_args() {
                __errmsg "Please install iptables-mod-conntrack-extra with opkg"
                return 1
        fi
-       o_remote_servers="$(for s in $o_remote_servers; do resolveip "$s"; done)"
+       o_remote_servers="$(for s in $o_remote_servers; do resolveip -4 "$s"; done)"
 }
 
 ss_rules_flush() {