Skip to content

Commit

Permalink
Merge pull request #981 from arthur-zhang/dev-revert
Browse files Browse the repository at this point in the history
revert some code in pr 962
  • Loading branch information
squeed authored Nov 16, 2023
2 parents 93a1b3d + f90ac41 commit 333fc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/main/bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func calcGateways(result *current.Result, n *NetConf) (*gwInfo, *gwInfo, error)

// Add a default route for this family using the current
// gateway address if necessary.
if n.IsDefaultGW {
if n.IsDefaultGW && !gws.defaultRouteFound {
for _, route := range result.Routes {
if route.GW != nil && defaultNet.String() == route.Dst.String() {
gws.defaultRouteFound = true
Expand Down

0 comments on commit 333fc9a

Please sign in to comment.