Skip to content

Commit ce92f04

Browse files
author
Jay Taylor
committed
crypto/ssh/knownhosts: corrected out-of-date documentation for checkAddr
1 parent ff983b9 commit ce92f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssh/knownhosts/knownhosts.go

Lines changed: 2 additions & 2 deletions
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+
// gien 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)