From 3fc16e51188de140c5c3c5c5ae385d93a7406d19 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 4 Mar 2025 11:44:41 -0700 Subject: [PATCH] network: -z for VLAN + VNET --- usr/local/share/bastille/network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index c2deef6a..992f3d72 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -432,7 +432,7 @@ case "${ACTION}" in else validate_ip "${IP}" fi - if [ "${VNET_JAIL}" -eq 1 ] && [ -n "${VLAN_ID}" ]; then + if [ "${VNET_JAIL}" -eq 1 ] && [ -z "${VLAN_ID}" ]; then if ifconfig -g bridge | grep -owq "${INTERFACE}"; then error_exit "\"${INTERFACE}\" is a bridge interface." else @@ -441,7 +441,7 @@ case "${ACTION}" in bastille start "${TARGET}" fi fi - elif [ "${BRIDGE_VNET_JAIL}" -eq 1 ] && [ -n "${VLAN_ID}" ]; then + elif [ "${BRIDGE_VNET_JAIL}" -eq 1 ] && [ -z "${VLAN_ID}" ]; then if ! ifconfig -g bridge | grep -owq "${INTERFACE}"; then error_exit "\"${INTERFACE}\" is not a bridge interface." else