|
|
|
|
@ -210,7 +210,7 @@ check_warp(){ |
|
|
|
|
|
|
|
|
|
CASE_IPV4(){ NIC='-ks4m8'; RESTART="wgcf_restart"; } |
|
|
|
|
CASE_IPV6(){ NIC='-ks6m8'; RESTART="wgcf_restart"; } |
|
|
|
|
CASE_CLIENT(){ NIC='-s4m8 --interface CloudflareWARP' && RESTART="interface_restart" && [[ $(warp-cli --accept-tos settings) =~ WarpProxy ]] && NIC="-sx socks5h://localhost:$CLIENT_PORT" && RESTART="socks5_restart"; } |
|
|
|
|
CASE_CLIENT(){ NIC='-ks4m8 --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") |
|
|
|
|
@ -325,7 +325,7 @@ socks5_restart(){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface_restart(){ |
|
|
|
|
warp-cli --accept-tos delete >/dev/null 2>&1 && warp-cli --accept-tos register >/dev/null 2>&1 |
|
|
|
|
warp-cli --accept-tos delete >/dev/null 2>&1 && warp-cli --accept-tos register >/dev/null 2>&1 && |
|
|
|
|
[[ -e /etc/wireguard/license ]] && warp-cli --accept-tos set-license \$(cat /etc/wireguard/license) >/dev/null 2>&1 |
|
|
|
|
warp-cli --accept-tos disconnect >/dev/null 2>&1 |
|
|
|
|
warp-cli --accept-tos disable-always-on >/dev/null 2>&1 |
|
|
|
|
|