Update menu.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent 7022028ce9
commit c801bdca06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      menu.sh

@ -794,15 +794,14 @@ proxy_onoff(){
if [[ $(ip a) =~ 'CloudflareWARP' ]]; then
warp-cli --accept-tos disconnect >/dev/null 2>&1
warp-cli --accept-tos disable-always-on >/dev/null 2>&1
sleep 5
[[ $SYSTEM = CentOS ]] && ip -4 rule delete from 172.16.0.2 lookup 51820
ip -4 rule delete from 172.16.0.2 lookup 51820
ip -4 rule delete table main suppress_prefixlength 0
green " ${T[${L}91]} " && exit 0
else
warp-cli --accept-tos connect >/dev/null 2>&1
warp-cli --accept-tos enable-always-on >/dev/null 2>&1
sleep 5
[[ $SYSTEM = CentOS ]] && ip -4 rule add from 172.16.0.2 lookup 51820
ip -4 rule add from 172.16.0.2 lookup 51820
ip -4 route add default dev CloudflareWARP table 51820
ip -4 rule add table main suppress_prefixlength 0
INTERFACE='--interface CloudflareWARP'

Loading…
Cancel
Save