tailscale/wgengine/router
Brad Fitzpatrick 01ee638cca Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors.
os.IsNotExist doesn't unwrap errors. errors.Is does.

The ioutil.ReadFile ones happened to be fine but I changed them so
we're consistent with the rule: if the error comes from os, you can
use os.IsNotExist, but from any other package, use errors.Is.
(errors.Is always would also work, but not worth updating all the code)

The motivation here was that we were logging about failure to migrate
legacy relay node prefs file on startup, even though the code tried
to avoid that.

See golang/go#41122
2020-11-02 08:33:34 -08:00
..
dns Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 2020-11-02 08:33:34 -08:00
ifconfig_windows_test.go wgengine/router: unfork winipcfg-go package, use upstream 2020-10-13 09:21:22 -07:00
ifconfig_windows.go wgengine/router: fix bug where getInterfaceRoutes always returned an empty list 2020-10-29 14:38:59 -07:00
router_darwin.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 2020-07-31 16:27:09 -04:00
router_default.go Remove tuntap references. We only use TUN. 2020-09-25 13:13:13 -07:00
router_fake.go wgengine/router: rename config.Settings to config.Config, make pointer. 2020-05-12 15:58:33 -07:00
router_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 2020-07-31 16:27:09 -04:00
router_linux_test.go wgengine/router: make v6-ness configurable in test, for consistent results. 2020-09-28 23:47:05 +00:00
router_linux.go wgengine/router: fix configuration of loopback netfilter rules for v6. 2020-10-15 15:15:24 -07:00
router_openbsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 2020-09-01 13:27:42 -07:00
router_userspace_bsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 2020-09-01 13:27:42 -07:00
router_windows.go wgengine/router: make Windows firewall configuration async 2020-10-29 13:40:20 -07:00
router.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 2020-07-31 16:27:09 -04:00
runner.go wgengine/router: set up basic IPv6 routing/firewalling. 2020-09-24 18:37:00 -07:00