Skip to content

Commit

Permalink
error if setting route MTU fails
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDoanRivian committed Sep 20, 2024
1 parent adaa3bf commit c2a1f13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions overlay/tun_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,9 @@ func (t *tun) Activate() error {

//set route MTU
for i := range t.vpnNetworks {
if err := t.setDefaultRoute(t.vpnNetworks[i]); err != nil {
if err = t.setDefaultRoute(t.vpnNetworks[i]); err != nil {
t.l.WithError(err).Error("Failed to add routes")
//todo why does this fail but only sometimes?
//todo return err
return err
}
}

Expand Down

0 comments on commit c2a1f13

Please sign in to comment.