Update unlock.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent f6d587a8f9
commit 7e2916c2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      unlock.sh

@ -196,6 +196,7 @@ 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
else STATUS[2]=0
fi
type -P wireproxy >/dev/null 2>&1 && [[ ! $(ss -nltp) =~ 'wireproxy' ]] && systemctl restart wireproxy

Loading…
Cancel
Save