Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
sec/insecure/insecure.go: Fix typo (#167)
Browse files Browse the repository at this point in the history
`SecureInbound` secures an inbound and not an outbound connection.
  • Loading branch information
mxinden authored Sep 18, 2020
1 parent d6afc69 commit a39b84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sec/insecure/insecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a39b84e

Please sign in to comment.