From 3d47e44f11c350df906d0c986e41891dd6e8d929 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Thu, 10 Nov 2022 19:05:28 +0100 Subject: [PATCH] rename cname to canonical --- src/net/dnsclient_unix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/dnsclient_unix.go b/src/net/dnsclient_unix.go index 9440e27ff9..7cb30c0402 100644 --- a/src/net/dnsclient_unix.go +++ b/src/net/dnsclient_unix.go @@ -576,8 +576,8 @@ func (r *Resolver) goLookupHostOrder(ctx context.Context, name string, order hos } // lookup entries from /etc/hosts -func goLookupIPFiles(name string) (addrs []IPAddr, cname string) { - addr, cname := lookupStaticHost(name) +func goLookupIPFiles(name string) (addrs []IPAddr, canonical string) { + addr, canonical := lookupStaticHost(name) for _, haddr := range addr { haddr, zone := splitHostZone(haddr) if ip := ParseIP(haddr); ip != nil { @@ -586,7 +586,7 @@ func goLookupIPFiles(name string) (addrs []IPAddr, cname string) { } } sortByRFC6724(addrs) - return addrs, cname + return addrs, canonical } // goLookupIP is the native Go implementation of LookupIP.