mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 14:43:19 +00:00
net/dns: fix NM's GetBaseConfig when no configs exist.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -279,6 +279,10 @@ func (m *nmManager) GetBaseConfig() (OSConfig, error) {
|
|||||||
return OSConfig{}, fmt.Errorf("unexpected NM config type %T", v.Value())
|
return OSConfig{}, fmt.Errorf("unexpected NM config type %T", v.Value())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(cfgs) == 0 {
|
||||||
|
return OSConfig{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
type dnsPrio struct {
|
type dnsPrio struct {
|
||||||
resolvers []netaddr.IP
|
resolvers []netaddr.IP
|
||||||
domains []string
|
domains []string
|
||||||
|
Reference in New Issue
Block a user