resolve domains in ss-nat

This commit is contained in:
Ptomerty
2018-11-25 21:29:18 -05:00
committed by GitHub
parent 2e7d7a60c4
commit 1dbeeaa46c
+4 -4
View File
@@ -21,9 +21,9 @@ usage() {
Valid options are:
-s <server_ip> ip address of shadowsocks remote server
-s <server_ip> Host name or IP address of shadowsocks remote server
-l <local_port> port number of shadowsocks local server
-S <server_ip> ip address of shadowsocks remote UDP server
-S <server_ip> Host name or IP address of shadowsocks remote UDP server
-L <local_port> port number of shadowsocks local UDP server
-i <ip_list_file> a file content is bypassed ip list
-I <interface> 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