Browse Source

resolve domains in ss-nat

pull/2230/head
Ptomerty 6 years ago
committed by GitHub
parent
commit
1dbeeaa46c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. 8
      src/ss-nat

8
src/ss-nat

@ -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

Loading…
Cancel
Save