From 1dbeeaa46cdaff34241c0e7fb51c93d562036e01 Mon Sep 17 00:00:00 2001 From: Ptomerty Date: Sun, 25 Nov 2018 21:29:18 -0500 Subject: [PATCH] resolve domains in ss-nat --- src/ss-nat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ss-nat b/src/ss-nat index 1dfcc77b..9374b76f 100755 --- a/src/ss-nat +++ b/src/ss-nat @@ -21,9 +21,9 @@ usage() { Valid options are: - -s ip address of shadowsocks remote server + -s Host name or IP address of shadowsocks remote server -l port number of shadowsocks local server - -S ip address of shadowsocks remote UDP server + -S Host name or IP address of shadowsocks remote UDP server -L port number of shadowsocks local UDP server -i a file content is bypassed ip list -I lan interface of nat, default: eth0 @@ -170,13 +170,13 @@ EOF while getopts ":s:l:S:L:i:I:e:a:b:w:ouUfh" arg; do case "$arg" in s) - server=$OPTARG + server=$(dig +short $OPTARG) ;; l) local_port=$OPTARG ;; S) - SERVER=$OPTARG + SERVER=$(dig +short $OPTARG) ;; L) LOCAL_PORT=$OPTARG