mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +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
@@ -64,7 +64,7 @@ func (m windowsManager) setDomains(basePath string, domains []string) error {
|
||||
return setRegistryString(path, "SearchList", value)
|
||||
}
|
||||
|
||||
func (m windowsManager) Set(config OSConfig) error {
|
||||
func (m windowsManager) SetDNS(config OSConfig) error {
|
||||
var ipsv4 []string
|
||||
var ipsv6 []string
|
||||
|
||||
@@ -118,5 +118,5 @@ func (m windowsManager) RoutingMode() RoutingMode {
|
||||
}
|
||||
|
||||
func (m windowsManager) Close() error {
|
||||
return m.Set(OSConfig{})
|
||||
return m.SetDNS(OSConfig{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user