Sfoglia il codice sorgente

fix ipv6 only issue

Max Ma 1 anno fa
parent
commit
0ca8b90568
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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"
 			}