mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-10 09:45:08 +00:00
net/dns: rename Set to SetDNS in OSConfigurator.
wgengine/router.CallbackRouter needs to support both the Router and OSConfigurator interfaces, so the setters can't both be called Set. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
7d84ee6c98
commit
b2a597b288
@@ -23,11 +23,11 @@ const (
|
||||
|
||||
// An OSConfigurator applies DNS settings to the operating system.
|
||||
type OSConfigurator interface {
|
||||
// Set updates the OS's DNS configuration to match cfg.
|
||||
// SetDNS updates the OS's DNS configuration to match cfg.
|
||||
// If cfg is the zero value, all Tailscale-related DNS
|
||||
// configuration is removed.
|
||||
// Set must not be called after Close.
|
||||
Set(cfg OSConfig) error
|
||||
// SetDNS must not be called after Close.
|
||||
SetDNS(cfg OSConfig) error
|
||||
// DNSRoutingMode reports the DNS routing capabilities of this OS
|
||||
// configurator.
|
||||
RoutingMode() RoutingMode
|
||||
|
Reference in New Issue
Block a user