sec/insecure/insecure.go: Fix typo (#167)

`SecureInbound` secures an inbound and not an outbound connection.
This commit is contained in:
Max Inden 2020-09-18 19:38:38 +02:00 committed by GitHub
parent d6afc690e1
commit a39b84ea2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ func (t *Transport) LocalPrivateKey() ci.PrivKey {
return t.key
}
// SecureInbound *pretends to secure* an outbound connection to the given peer.
// SecureInbound *pretends to secure* an inbound connection to the given peer.
// It sends the local peer's ID and public key, and receives the same from the remote peer.
// No validation is performed as to the authenticity or ownership of the provided public key,
// and the key exchange provides no security.