diff --git a/v2ray/scripts/v2ray.tproxy b/v2ray/scripts/v2ray.tproxy index ce9e78c..11dde43 100644 --- a/v2ray/scripts/v2ray.tproxy +++ b/v2ray/scripts/v2ray.tproxy @@ -47,7 +47,7 @@ find_netstat_path() { probe_v2ray_listen() { find_netstat_path || return v2ray_listen=`netstat -tnlp | grep v2ray | grep LISTEN` - if eval "echo \"${v2ray_listen}\" | grep -q :::${proxy_port}" || eval "echo \"${v2ray_listen}\" | grep -q 0.0.0.0:${proxy_port}" ; then + if eval "echo \"${v2ray_listen}\" | grep -q :::${proxy_port}" || eval "echo \"${v2ray_listen}\" | grep -q 0.0.0.0:${proxy_port}" || eval "echo \"${v2ray_listen}\" | grep -q '\[::\]:${proxy_port}'" ; then v2ray_share=true return elif eval "echo \"${v2ray_listen}\" | grep -q :${proxy_port}" ; then