mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
net/dns: check if Manager.knobs isn't nil before using it
Updates corp#15802 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
0219317372
commit
8e1d46e54f
@ -296,6 +296,9 @@ func (m *Manager) compileConfig(cfg Config) (rcfg resolver.Config, ocfg OSConfig
|
||||
}
|
||||
|
||||
func (m *Manager) disableSplitDNSOptimization() bool {
|
||||
if m.knobs == nil {
|
||||
return false
|
||||
}
|
||||
return m.knobs.DisableSplitDNSWhenNoCustomResolvers.Load()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user