Add ability to skip installing unsafe routes on the os routing table (#831)

This commit is contained in:
Nate Brown
2023-04-10 12:32:37 -05:00
committed by GitHub
parent 9b03053191
commit 397fe5f879
8 changed files with 51 additions and 20 deletions

View File

@@ -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,