From a2d43c49537296739d274534e6585fa89efcc8fa Mon Sep 17 00:00:00 2001 From: tschettervictor Date: Sat, 13 Dec 2025 21:09:30 -0700 Subject: [PATCH] fix network --- usr/local/share/bastille/network.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index af66b20c..72f050fb 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -451,7 +451,7 @@ EOF } EOF # Add config to /etc/rc.conf - if [ -n "${IP6_ADDR}" ]; then + if [ -n "${IP6_ADDR}" ]; then if [ "${IP6_ADDR}" = "SLAAC" ]; then sysrc -f "${jail_rc_config}" ifconfig_${if}_ipv6="inet6 -ifdisabled accept_rtadv" else @@ -469,9 +469,9 @@ EOF elif [ "${STANDARD}" -eq 1 ]; then if [ -n "${IP6_ADDR}" ]; then - sed -i '' "s/ip4.addr = .*/&\n ip6.addr += ${if}|${ip};/" ${jail_config} + sed -i '' "s/ip6.addr = .*/&\n ip6.addr += ${if}|${ip};/" ${jail_config} else - sed -i '' "s/ip6.addr = .*/&\n ip4.addr += ${if}|${ip};/" ${jail_config} + sed -i '' "s/ip4.addr = .*/&\n ip4.addr += ${if}|${ip};/" ${jail_config} fi fi }