From 2fdd6b8c39b873f490baf64f9e37db8906df6f90 Mon Sep 17 00:00:00 2001 From: Xu Tianliang Date: Sun, 2 Jan 2022 03:36:15 +0800 Subject: [PATCH] Fix can't share wifi spot with others on the latest v2ray Signed-off-by: Xu Tianliang --- v2ray/scripts/v2ray.tproxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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