From 98415154fde7c4ad5a52d224f79a13d13d4a659c Mon Sep 17 00:00:00 2001 From: Yonsm Date: Wed, 1 Jul 2020 15:20:31 +0800 Subject: [PATCH] Disable dns resolve for host --- trunk/user/wing/wing | 4 ---- 1 file changed, 4 deletions(-) diff --git a/trunk/user/wing/wing b/trunk/user/wing/wing index 792043bc196..391dbc4d96c 100755 --- a/trunk/user/wing/wing +++ b/trunk/user/wing/wing @@ -52,10 +52,6 @@ start() HOST=$2 PORT= fi - if ! expr match $HOST [0-9.]*$ > /dev/null; then - PING=`ping $HOST -c 1 -w 1` 2> /dev/null - [ ! -z "$PING" ] && HOST=`echo $PING | sed "1{s/[^(]*(//;s/).*//;q}"` - fi # trojan if [ -z $3 ]; then