From 8f59cab1bdd3a98d42f58cf58e94c42b73f90cc3 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Mon, 3 Oct 2022 13:49:04 +0800 Subject: [PATCH] Update warp-go.sh --- warp-go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warp-go.sh b/warp-go.sh index 9d1223b..d07a708 100644 --- a/warp-go.sh +++ b/warp-go.sh @@ -599,7 +599,7 @@ stack_switch() { esac fi - [[ "${#CONF}" != [34] ]] && error " $(text 10) " || sh -c "$(eval echo "\$SWITCH$TO")" + [[ "${#TO}" != [34] ]] && error " $(text 10) " || sh -c "$(eval echo "\$SWITCH$TO")" ${SYSTEMCTL_RESTART[int]} grep -q "^AllowedIPs.*0\.\0\/0" /opt/warp-go/warp.conf || unset INTERFACE OPTION=o && net