fixed vnet ipv6 configuration, syntax error

This commit is contained in:
Thomas von Dein
2021-07-04 11:52:04 +02:00
parent ca76632a2c
commit 10cb98bb57

8
jaildk
View File

@@ -2045,7 +2045,13 @@ jaildk_vnet() {
ex jexec $jail ifconfig $vnetjail $ip up
ex jexec $jail route add default $gw
if -n "$ip6" -a -n "$gw6"; then
if test -n "$ip6" -a -n "$gw6"; then
ex jexec $jail ifconfig $vnetjail inet6 $ip6
ex jexec $jail route -6 add default $gw6
fi
;;
start6)
if test -n "$ip6" -a -n "$gw6"; then
ex jexec $jail ifconfig $vnetjail inet6 $ip6
ex jexec $jail route -6 add default $gw6
fi