Skip to content

Commit 333fc9a

Browse files
authored
Merge pull request #981 from arthur-zhang/dev-revert
revert some code in pr 962
2 parents 93a1b3d + f90ac41 commit 333fc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/main/bridge/bridge.go

+1-1
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)