From fac10828032ee04d27050908a8d44d2d0280d8b1 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 30 Aug 2017 17:38:28 +0800 Subject: [PATCH] shadowsocks-libev: ss-rules: query resolveip only for ipv4 addresses Signed-off-by: Yousong Zhou --- net/shadowsocks-libev/Makefile | 2 +- net/shadowsocks-libev/files/ss-rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/shadowsocks-libev/Makefile b/net/shadowsocks-libev/Makefile index d79693f7a..a34d1d312 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.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) diff --git a/net/shadowsocks-libev/files/ss-rules b/net/shadowsocks-libev/files/ss-rules index 3c83591fe..29de59538 100755 --- a/net/shadowsocks-libev/files/ss-rules +++ b/net/shadowsocks-libev/files/ss-rules @@ -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() {