summaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2016-03-29 16:23:18 -0400
committerAndrew Gallant <[email protected]>2016-03-29 16:23:18 -0400
commitb3a96fa0bc5f20dd08ed8342359a31b64bd761fa (patch)
tree05e13ac8d1a42349b766b0abd6d2a55b5ee3986f /auth.go
parent5d9015c16e326c446bad9da7b29698d659069af5 (diff)
fix structs with field name of 'Bytes'
(it conflict with a method of the same name that is generated for all such structs)
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go3
1 files changed, 2 insertions, 1 deletions
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 {