From 80b1308974200b5dd8508aca64c704b344128ca4 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 25 Jun 2021 07:02:10 -0700 Subject: [PATCH] net/dns: remove ref to managerImpl Signed-off-by: David Crawshaw --- net/dns/direct.go | 2 +- net/dns/resolved.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net/dns/direct.go b/net/dns/direct.go index d38236589..bc218bb7d 100644 --- a/net/dns/direct.go +++ b/net/dns/direct.go @@ -143,7 +143,7 @@ func isResolvedRunning() bool { 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. // // This way of configuring DNS is precarious, since it does not react diff --git a/net/dns/resolved.go b/net/dns/resolved.go index 0b1503320..f81c18822 100644 --- a/net/dns/resolved.go +++ b/net/dns/resolved.go @@ -80,7 +80,7 @@ func isResolvedActive() bool { return false } -// resolvedManager uses the systemd-resolved DBus API. +// resolvedManager is an OSConfigurator which uses the systemd-resolved DBus API. type resolvedManager struct { logf logger.Logf ifidx int @@ -105,7 +105,6 @@ func newResolvedManager(logf logger.Logf, interfaceName string) (*resolvedManage }, nil } -// Up implements managerImpl. func (m *resolvedManager) SetDNS(config OSConfig) error { ctx, cancel := context.WithTimeout(context.Background(), reconfigTimeout) defer cancel()