Skip to content

Commit 057139c

Browse files
jaytaylorhanwen
authored andcommitted
crypto/ssh/knownhosts: fix out-of-date documentation for checkAddr
Change-Id: I03e9cf1ee82b38f15232a48992bae0234bd51f1a GitHub-Last-Rev: fd7b92d GitHub-Pull-Request: #71 Reviewed-on: https://go-review.googlesource.com/c/156878 Reviewed-by: Han-Wen Nienhuys <[email protected]> Run-TryBot: Han-Wen Nienhuys <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 6407268 commit 057139c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ssh/knownhosts/knownhosts.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ func (db *hostKeyDB) check(address string, remote net.Addr, remoteKey ssh.Public
350350
return db.checkAddr(hostToCheck, remoteKey)
351351
}
352352

353-
// checkAddrs checks if we can find the given public key for any of
354-
// the given addresses. If we only find an entry for the IP address,
353+
// checkAddr checks if we can find the given public key for the
354+
// given address. If we only find an entry for the IP address,
355355
// or only the hostname, then this still succeeds.
356356
func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error {
357357
// TODO(hanwen): are these the right semantics? What if there

0 commit comments

Comments
 (0)