From b3a96fa0bc5f20dd08ed8342359a31b64bd761fa Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Tue, 29 Mar 2016 16:23:18 -0400 Subject: fix structs with field name of 'Bytes' (it conflict with a method of the same name that is generated for all such structs) --- auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auth.go') diff --git a/auth.go b/auth.go index 62a9b35..ec51d10 100644 --- a/auth.go +++ b/auth.go @@ -76,7 +76,8 @@ func readAuthority(hostname, display string) ( return "", nil, err } - addrmatch := (family == familyWild) || (family == familyLocal && addr == hostname) + addrmatch := (family == familyWild) || + (family == familyLocal && addr == hostname) dispmatch := (disp == "") || (disp == display) if addrmatch && dispmatch { -- cgit v1.2.3