From fffaa41036eaf5eb53eac050191540b7d821ef20 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 24 Apr 2025 10:12:56 -0600 Subject: [PATCH] create: Only list IPv4 for _gatway --- usr/local/share/bastille/create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index d5912fb1..c4edf71d 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -585,7 +585,7 @@ create_jail() { if [ -n "${bastille_network_gateway}" ]; then _gateway="${bastille_network_gateway}" else - _gateway="$(netstat -rn | awk '/default/ {print $2}')" + _gateway="$(netstat -4rn | awk '/default/ {print $2}')" fi fi # Add IPv4 address (this is empty if DHCP is used)