mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 10:31:59 +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
@@ -63,7 +63,7 @@ func newNMManager(interfaceName string) nmManager {
|
||||
|
||||
type nmConnectionSettings map[string]map[string]dbus.Variant
|
||||
|
||||
func (m nmManager) Set(config OSConfig) error {
|
||||
func (m nmManager) SetDNS(config OSConfig) error {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), reconfigTimeout)
|
||||
defer cancel()
|
||||
|
||||
@@ -203,5 +203,5 @@ func (m nmManager) Set(config OSConfig) error {
|
||||
func (m nmManager) RoutingMode() RoutingMode { return RoutingModeNone }
|
||||
|
||||
func (m nmManager) Close() error {
|
||||
return m.Set(OSConfig{})
|
||||
return m.SetDNS(OSConfig{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user