Skip to content

Commit 49b3818

Browse files
authored
fix: network family default value variable (#361)
Cosmetic as it's the empty string currently anyway.
1 parent f3091be commit 49b3818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/commands/network/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func handleNetwork(in string) (*upcloud.IPNetwork, error) {
4444
fs := &pflag.FlagSet{}
4545
fs.StringVar(&dns, "dhcp-dns", dns, "Defines if the gateway should be given as default route by DHCP. Defaults to yes on public networks, and no on other ones.")
4646
fs.StringVar(&result.Address, "address", result.Address, "Sets address space for the network.")
47-
fs.StringVar(&result.Family, "family", result.Address, "IP address family. Currently only IPv4 networks are supported.")
47+
fs.StringVar(&result.Family, "family", result.Family, "IP address family. Currently only IPv4 networks are supported.")
4848
fs.StringVar(&result.Gateway, "gateway", result.Gateway, "Gateway address given by the DHCP service. Defaults to first address of the network if not given.")
4949
fs.StringVar(&dhcp, "dhcp", dhcp, "Toggles DHCP service for the network.")
5050
fs.StringVar(&dhcpDefaultRoute, "dhcp-default-route", dhcpDefaultRoute, "Defines if the gateway should be given as default route by DHCP. Defaults to yes on public networks, and no on other ones.")

0 commit comments

Comments
 (0)