From cd3f5309233cf9d92bbfb94c184f9d5ca0fa022f Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sat, 9 Apr 2022 15:26:47 +0800 Subject: [PATCH] Update unlock.sh --- unlock.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unlock.sh b/unlock.sh index 4649f64..56fca1c 100644 --- a/unlock.sh +++ b/unlock.sh @@ -195,6 +195,8 @@ check_warp(){ else [[ ! $(ss -nltp) =~ 'warp-svc' ]] && warp-cli --accept-tos connect >/dev/null 2>&1 [[ $(ss -nltp) =~ 'warp-svc' ]] && CLIENT_PORT=$(ss -nltp | grep warp-svc | grep -oP '127.0*\S+' | cut -d: -f2) && STATUS[2]=1 || STATUS[2]=0 + fi + fi type -P wireproxy >/dev/null 2>&1 && [[ ! $(ss -nltp) =~ 'wireproxy' ]] && systemctl restart wireproxy [[ $(ss -nltp) =~ 'wireproxy' ]] && WIREPROXY_PORT=$(ss -nltp | grep wireproxy | grep -oP '127.0*\S+' | cut -d: -f2) && STATUS[3]=1 || STATUS[3]=0