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:
David Anderson
2021-04-20 15:51:14 -07:00
parent 3b1ab78954
commit 53213114ec
3 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -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
}