From 0d8798f084cef4f75efd7d098e0bc006e3677383 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Mon, 3 Oct 2022 13:40:49 +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 5392573..9d1223b 100644 --- a/warp-go.sh +++ b/warp-go.sh @@ -599,7 +599,7 @@ stack_switch() { esac fi - sh -c "$(eval echo "\$SWITCH$TO")" + [[ "${#CONF}" != [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