Skip to content

Commit e8440e4

Browse files
committed
Fix scope of route for the gateway
1 parent e82ce79 commit e8440e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func setLinkRoute(link *netlink.Link) error {
6969
}
7070
log.Debug("Setting a route for the gateway")
7171
err = netlink.RouteAdd(&netlink.Route{
72-
Scope: netlink.SCOPE_UNIVERSE,
72+
Scope: netlink.SCOPE_LINK,
7373
LinkIndex: (*link).Attrs().Index,
7474
Dst: gwaddrNet,
7575
})

0 commit comments

Comments
 (0)