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

@@ -86,7 +86,7 @@ func (t *tun) Activate() error {
}
// Unsafe path routes
for _, r := range t.Routes {
if r.Via == nil {
if r.Via == nil || !r.Install {
// We don't allow route MTUs so only install routes with a via
continue
}