Parcourir la source

fix ipv6 only issue

Max Ma il y a 1 an
Parent
commit
0ca8b90568
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      cli/cmd/network/create.go

+ 3 - 0
cli/cmd/network/create.go

@@ -32,6 +32,9 @@ var networkCreateCmd = &cobra.Command{
 				network.AddressRange6 = address6
 				network.IsIPv6 = "yes"
 			}
+			if address == "" {
+				network.IsIPv4 = "no"
+			}
 			if udpHolePunch {
 				network.DefaultUDPHolePunch = "yes"
 			}