mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-03 23:22:23 -08:00
net/dns: check if Manager.knobs isn't nil before using it
Updates corp#15802 Signed-off-by: Irbe Krumina <[email protected]>
This commit is contained in:
1 parent
0219317372
commit
8e1d46e54f
1 file changed
+3
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user