mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
sec/insecure/insecure.go: Fix typo (#167)
`SecureInbound` secures an inbound and not an outbound connection.
This commit is contained in:
parent
d6afc690e1
commit
a39b84ea2e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user