You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 years ago
..
dns Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 4 years ago
ifconfig_windows.go wgengine/router: fix bug where getInterfaceRoutes always returned an empty list 4 years ago
ifconfig_windows_test.go wgengine/router: unfork winipcfg-go package, use upstream 4 years ago
router.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_darwin.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_default.go Remove tuntap references. We only use TUN. 4 years ago
router_fake.go wgengine/router: rename config.Settings to config.Config, make pointer. 5 years ago
router_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_linux.go wgengine/router: fix configuration of loopback netfilter rules for v6. 4 years ago
router_linux_test.go wgengine/router: make v6-ness configurable in test, for consistent results. 4 years ago
router_openbsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 4 years ago
router_userspace_bsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 4 years ago
router_windows.go wgengine/router: make Windows firewall configuration async 4 years ago
runner.go wgengine/router: set up basic IPv6 routing/firewalling. 4 years ago