diff --git a/.golangci.yml b/.golangci.yml index cac85d1..7aa7aff 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,6 +6,10 @@ linters: # - gci - staticcheck +issues: + exclude-dirs: + - internal + linters-settings: # gci: # sections: diff --git a/tun_windows.go b/tun_windows.go index fa2c69f..2cd11e4 100644 --- a/tun_windows.go +++ b/tun_windows.go @@ -114,6 +114,9 @@ func (t *NativeTun) configure() error { err = luid.AddRoute(routeRange, netip.IPv6Unspecified(), 0) } } + if err != nil { + return err + } err = windnsapi.FlushResolverCache() if err != nil { return err