mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-29 04:52:44 -08:00
net/dns: fix NM's GetBaseConfig when no configs exist.
Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
1 parent
fe3b1ab747
commit
9ef932517b
1 file changed
+4
@@ -279,6 +279,10 @@ func (m *nmManager) GetBaseConfig() (OSConfig, error) {
|
||||
return OSConfig{}, fmt.Errorf("unexpected NM config type %T", v.Value())
|
||||
}
|
||||
|
||||
if len(cfgs) == 0 {
|
||||
return OSConfig{}, nil
|
||||
}
|
||||
|
||||
type dnsPrio struct {
|
||||
resolvers []netaddr.IP
|
||||
domains []string
|
||||
|
||||
Reference in new issue
Block a user