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