fixes issue #361

[BUG] IPv6 not respected when creating VNET jails #361
This commit is contained in:
noracenofun
2021-05-05 12:45:47 +02:00
committed by GitHub
parent 9a0d01da74
commit ac01384810

View File

@@ -379,7 +379,11 @@ create_jail() {
_gateway=''
_ifconfig=SYNCDHCP
if [ "${IP}" != "0.0.0.0" ]; then # not using DHCP, so set static address.
_ifconfig="inet ${IP}"
if [ -n "${ip6}" ]; then
_ifconfig="inet6 ${IP}"
else
_ifconfig="inet ${IP}"
fi
if [ -n "${bastille_network_gateway}" ]; then
_gateway="${bastille_network_gateway}"
else