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/dns
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
..
config.go tailcfg, tsdns: derive root domains from list of nodes (#708) 4 years ago
direct.go Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 4 years ago
manager.go wgengine/router/dns: appease staticcheck (again) 4 years ago
manager_default.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_linux.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_openbsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_windows.go wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings. 4 years ago
nm.go router/dns: detect host endianness for NetworkManager. 4 years ago
noop.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
resolvconf.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
resolved.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago