Skip to content

Commit f90ac41

Browse files
committed
revert some code in pr 962
Signed-off-by: arthur-zhang <[email protected]>
1 parent 93a1b3d commit f90ac41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/main/bridge/bridge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func calcGateways(result *current.Result, n *NetConf) (*gwInfo, *gwInfo, error)
240240

241241
// Add a default route for this family using the current
242242
// gateway address if necessary.
243-
if n.IsDefaultGW {
243+
if n.IsDefaultGW && !gws.defaultRouteFound {
244244
for _, route := range result.Routes {
245245
if route.GW != nil && defaultNet.String() == route.Dst.String() {
246246
gws.defaultRouteFound = true

0 commit comments

Comments
 (0)