Skip to content

Commit

Permalink
Use bridge consts for "DefaultGatewayIPv[46]" aux-addr keys
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Murray <[email protected]>
  • Loading branch information
robmry committed Jan 7, 2025
1 parent 3c628f7 commit a4ae38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/daemon_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ func (o defBrOptsV4) bip() (bip, optName string) {
}

func (o defBrOptsV4) defGw() (gw net.IP, optName, auxAddrLabel string) {
return o.cfg.DefaultGatewayIPv4, "default-gateway", "DefaultGatewayIPv4"
return o.cfg.DefaultGatewayIPv4, "default-gateway", bridge.DefaultGatewayV4AuxKey
}

type defBrOptsV6 struct {
Expand All @@ -962,7 +962,7 @@ func (o defBrOptsV6) bip() (bip, optName string) {
}

func (o defBrOptsV6) defGw() (gw net.IP, optName, auxAddrLabel string) {
return o.cfg.DefaultGatewayIPv6, "default-gateway-v6", "DefaultGatewayIPv6"
return o.cfg.DefaultGatewayIPv6, "default-gateway-v6", bridge.DefaultGatewayV6AuxKey
}

type defBrOpts interface {
Expand Down

0 comments on commit a4ae38b

Please sign in to comment.