mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 08:24:25 +01:00
Add ability to skip installing unsafe routes on the os routing table (#831)
This commit is contained in:
@@ -279,6 +279,10 @@ func (t tun) Activate() error {
|
||||
|
||||
// Path routes
|
||||
for _, r := range t.Routes {
|
||||
if !r.Install {
|
||||
continue
|
||||
}
|
||||
|
||||
nr := netlink.Route{
|
||||
LinkIndex: link.Attrs().Index,
|
||||
Dst: r.Cidr,
|
||||
|
||||
Reference in New Issue
Block a user