crypto/ssh/knownhosts: corrected out-of-date documentation for checkAddr

This commit is contained in:
Jay Taylor 2019-01-08 11:46:44 -08:00 коммит произвёл Jay Taylor
Родитель ff983b9c42
Коммит fd7b92d97c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -350,8 +350,8 @@ func (db *hostKeyDB) check(address string, remote net.Addr, remoteKey ssh.Public
return db.checkAddr(hostToCheck, remoteKey) return db.checkAddr(hostToCheck, remoteKey)
} }
// checkAddrs checks if we can find the given public key for any of // checkAddr checks if we can find the given public key for the
// the given addresses. If we only find an entry for the IP address, // given address. If we only find an entry for the IP address,
// or only the hostname, then this still succeeds. // or only the hostname, then this still succeeds.
func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error { func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error {
// TODO(hanwen): are these the right semantics? What if there // TODO(hanwen): are these the right semantics? What if there