From ebb290e4fb476818505a5f79d83c9959fc990ed7 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:22:04 -0600 Subject: [PATCH] network: Do not allow a 4th arg on --no-ip --- usr/local/share/bastille/network.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index f2fde9e0..2a84f7cb 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -124,8 +124,10 @@ ACTION="${2}" INTERFACE="${3}" if [ "${NO_IP}" -eq 0 ]; then IP="${4}" -else +elif [ "${NO_IP}" -eq 1] && [ -z "${4}" ]; then IP="" +else + usage fi if [ "${ACTION}" = "add" ]; then