mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 05:07:33 +00:00
net/dns: remove ref to managerImpl
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:

committed by
David Crawshaw

parent
bcaae3e074
commit
80b1308974
@@ -143,7 +143,7 @@ func isResolvedRunning() bool {
|
|||||||
return err == nil
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// directManager is a managerImpl which replaces /etc/resolv.conf with a file
|
// directManager is an OSConfigurator which replaces /etc/resolv.conf with a file
|
||||||
// generated from the given configuration, creating a backup of its old state.
|
// generated from the given configuration, creating a backup of its old state.
|
||||||
//
|
//
|
||||||
// This way of configuring DNS is precarious, since it does not react
|
// This way of configuring DNS is precarious, since it does not react
|
||||||
|
@@ -80,7 +80,7 @@ func isResolvedActive() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// resolvedManager uses the systemd-resolved DBus API.
|
// resolvedManager is an OSConfigurator which uses the systemd-resolved DBus API.
|
||||||
type resolvedManager struct {
|
type resolvedManager struct {
|
||||||
logf logger.Logf
|
logf logger.Logf
|
||||||
ifidx int
|
ifidx int
|
||||||
@@ -105,7 +105,6 @@ func newResolvedManager(logf logger.Logf, interfaceName string) (*resolvedManage
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Up implements managerImpl.
|
|
||||||
func (m *resolvedManager) SetDNS(config OSConfig) error {
|
func (m *resolvedManager) SetDNS(config OSConfig) error {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), reconfigTimeout)
|
ctx, cancel := context.WithTimeout(context.Background(), reconfigTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
Reference in New Issue
Block a user