From 3ed395274fa722f0b7ff4d420d94c5d57727cb65 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sat, 9 Apr 2022 19:04:18 +0800 Subject: [PATCH] Update unlock.sh --- unlock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unlock.sh b/unlock.sh index f67f943..97d7b89 100644 --- a/unlock.sh +++ b/unlock.sh @@ -210,7 +210,7 @@ check_warp(){ CASE_IPV4(){ NIC='-ks4m8'; RESTART="wgcf_restart"; } CASE_IPV6(){ NIC='-ks6m8'; RESTART="wgcf_restart"; } - CASE_CLIENT(){ NIC="-sx socks5h://localhost:$CLIENT_PORT" && RESTART="socks5_restart" && [[ -e /etc/wireguard/luban ]] && NIC='--interface CloudflareWARP' && RESTART="interface_restart"; } + CASE_CLIENT(){ NIC='--interface CloudflareWARP' && RESTART="interface_restart" && [[ $(warp-cli --accept-tos settings) =~ WarpProxy ]] && NIC="-sx socks5h://localhost:$CLIENT_PORT" && RESTART="socks5_restart"; } CASE_WIREPROXY(){ NIC="-sx socks5h://localhost:$WIREPROXY_PORT"; RESTART="wireproxy_restart"; } INSTALL_CHECK=("0 0 0 0" "1 1 1 1" "0 1 1 1" "1 0 1 1" "1 1 0 1" "1 1 1 0" "0 0 1 1" "0 1 0 1" "0 1 1 0" "1 0 0 1" "1 0 1 0" "1 1 0 0" "0 0 0 1" "0 0 1 0" "0 1 0 0" "1 0 0 0")