Skip to content

Commit

Permalink
⚙️ Improve error handling in vpn.NetworkService
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Feb 23, 2022
1 parent a11ae0c commit c579481
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/vpn/vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func VPNNetworkService(p ...Option) node.NetworkService {
Logger: logger.New(log.LevelDebug),
MaxStreams: 30,
}
c.Apply(p...)
if err := c.Apply(p...); err != nil {
return err
}

ifce, err := createInterface(c)
if err != nil {
Expand Down

0 comments on commit c579481

Please sign in to comment.