mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 09:57:31 +00:00
net/dns: add GetBaseConfig to OSConfigurator interface.
Part of #953, required to make split DNS work on more basic platforms. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
fe9cd61d71
commit
68f76e9aa1
@@ -6,9 +6,10 @@ package dns
|
||||
|
||||
type noopManager struct{}
|
||||
|
||||
func (m noopManager) SetDNS(OSConfig) error { return nil }
|
||||
func (m noopManager) SupportsSplitDNS() bool { return false }
|
||||
func (m noopManager) Close() error { return nil }
|
||||
func (m noopManager) SetDNS(OSConfig) error { return nil }
|
||||
func (m noopManager) SupportsSplitDNS() bool { return false }
|
||||
func (m noopManager) Close() error { return nil }
|
||||
func (m noopManager) GetBaseConfig() (OSConfig, error) { return OSConfig{}, nil }
|
||||
|
||||
func NewNoopManager() noopManager {
|
||||
return noopManager{}
|
||||
|
Reference in New Issue
Block a user