net/dns: make debian_resolvconf correctly clear DNS configs.
More of #1720. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
+1
-1
@@ -234,7 +234,7 @@ func (m directManager) restoreBackup() error {
|
||||
}
|
||||
|
||||
func (m directManager) SetDNS(config OSConfig) error {
|
||||
if config.Equal(OSConfig{}) {
|
||||
if config.IsZero() {
|
||||
if err := m.restoreBackup(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user