Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zhj9709 committed Jan 25, 2021
1 parent a4272e7 commit 0d2c22b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified clnc-tun/bin/busybox
Binary file not shown.
2 changes: 1 addition & 1 deletion clnc-tun/bin/clncs.bin
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ start_rules() {
get_ip() {
server=${addr%:*}
if echo $server | grep -q [a-zA-Z]; then
ip=`busybox wget -q -T1 -O- http://119.29.29.29/d?dn=$server | busybox cut -d';' -f1`
ip=`busybox timeout 1 busybox wget -q -T1 -O- http://119.29.29.29/d?dn=$server | busybox cut -d';' -f1`
echo $ip | grep -q '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}' || ip=""
if [ -z "$ip" ]; then
ip=`ping -c1 -w1 -W1 $server | grep 'PING' | busybox cut -d'(' -f2 | busybox cut -d')' -f1`
Expand Down
2 changes: 1 addition & 1 deletion clnc-tun/bin/clnct.bin
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ start_rules() {
get_ip() {
server=${addr%:*}
if echo $server | grep -q [a-zA-Z]; then
ip=`busybox wget -q -T1 -O- http://119.29.29.29/d?dn=$server | busybox cut -d';' -f1`
ip=`busybox timeout 1 busybox wget -q -T1 -O- http://119.29.29.29/d?dn=$server | busybox cut -d';' -f1`
echo $ip | grep -q '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}' || ip=""
if [ -z "$ip" ]; then
ip=`ping -c1 -w1 -W1 $server | grep 'PING' | busybox cut -d'(' -f2 | busybox cut -d')' -f1`
Expand Down

0 comments on commit 0d2c22b

Please sign in to comment.