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