mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
shadowsocks-libev: ss-rules: resolve server names before adding to ipset
ipset command line utility supports ranges of address: IP-IP, but the
dash character is also valid character in host names. If we have a
remote server ss-00.example.com, ipset may complain that
ipset v6.32: Syntax error: cannot parse ss: resolving to IPv4 address failed
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -112,6 +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)"
|
||||
}
|
||||
|
||||
ss_rules_flush() {
|
||||
|
||||
Reference in New Issue
Block a user