Update menu.sh

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

@ -795,12 +795,12 @@ proxy_onoff(){
wireproxy_onoff(){
! type -P wireproxy >/dev/null 2>&1 && red " ${T[${L}157]} " && exit 1 || OCTEEP=1
if ss -nltp | grep wireproxy >/dev/null 2>&1; then
kill -9 $(pgrep -f wireproxy) >/dev/null 2>&1
green " ${T[${L}158]} "
systemctl disable --now wireproxy
[[ ! $(ss -nltp) =~ 'wireproxy' ]] && green " ${T[${L}158]} "
else systemctl restart wireproxy
else systemctl enable --now wireproxy
sleep 1 && proxy_info
green " ${T[${L}99]}\n $(eval echo "${T[${L}162]}") "
[[ $(ss -nltp) =~ 'wireproxy' ]] && green " ${T[${L}99]}\n $(eval echo "${T[${L}162]}") "
fi
}

Loading…
Cancel
Save