Skip to content

Commit fd7b92d

Browse files
jaytaylorJay Taylor
authored and
Jay Taylor
committed
crypto/ssh/knownhosts: corrected out-of-date documentation for checkAddr
1 parent ff983b9 commit fd7b92d

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)