From c51b8c206d97b696c95ba54b9a44ea606c12fc0e Mon Sep 17 00:00:00 2001 From: wardn Date: Fri, 21 Feb 2020 15:27:21 -0800 Subject: [PATCH] wgengine: resolv.conf spelling corrections Signed-off-by: wardn --- wgengine/router_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wgengine/router_linux.go b/wgengine/router_linux.go index 97930e0b6..6b004d188 100644 --- a/wgengine/router_linux.go +++ b/wgengine/router_linux.go @@ -211,7 +211,7 @@ func (r *linuxRouter) replaceResolvConf(servers []wgcfg.IP, domains []string) er // Backup the existing /etc/resolv.conf file. contents, err := ioutil.ReadFile(resolvConf) if os.IsNotExist(err) { - // No existing /etc/resolve.conf file to backup. + // No existing /etc/resolv.conf file to backup. // Nothing to do. return nil } else if err != nil { @@ -246,14 +246,14 @@ func (r *linuxRouter) replaceResolvConf(servers []wgcfg.IP, domains []string) er func (r *linuxRouter) restoreResolvConf() error { if _, err := os.Stat(backupConf); err != nil { if os.IsNotExist(err) { - return nil // no backup resolve.conf to restore + return nil // no backup resolv.conf to restore } return err } if ln, err := os.Readlink(resolvConf); err != nil { return err } else if ln != tsConf { - return fmt.Errorf("resolve.conf is not a symlink to %s", tsConf) + return fmt.Errorf("resolv.conf is not a symlink to %s", tsConf) } if err := os.Rename(backupConf, resolvConf); err != nil { return err