Skip to content

Commit

Permalink
Merge pull request moby#49229 from robmry/defgw_labels
Browse files Browse the repository at this point in the history
Use bridge consts for "DefaultGatewayIPv[46]" aux-addr keys
  • Loading branch information
thaJeztah authored Jan 8, 2025
2 parents b223a6b + a4ae38b commit eb36b18
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 @@ -943,7 +943,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 @@ -963,7 +963,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 eb36b18

Please sign in to comment.