mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
net/dns: resolveConfExists reading the wrong error
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
c1aa5a2e33
commit
0ac2130590
@ -216,7 +216,8 @@ func (m directManager) restoreBackup() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if _, err := m.fs.Stat(resolvConf); err != nil && !os.IsNotExist(err) {
|
_, err = m.fs.Stat(resolvConf)
|
||||||
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
resolvConfExists := !os.IsNotExist(err)
|
resolvConfExists := !os.IsNotExist(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user