Skip to content

Commit

Permalink
Peerd: Use brontide encryption for tcp session
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCharlatan committed May 24, 2022
1 parent cff6ea7 commit 13d886c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/peerd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ fn main() {
.expect("Unable to set up timeout for TCP connection");

debug!("Establishing session with the remote");
let session = session::Raw::with_ftcp(stream, inet_addr)
.expect("Unable to establish session with the remote peer");
let session =
session::Raw::with_brontide(stream, local_node.private_key(), inet_addr)
.expect("Unable to establish session with the remote peer");

internal_id = NodeAddr::Remote(RemoteNodeAddr {
node_id: opts.peer_key_opts.internal_node().node_id(),
Expand Down

0 comments on commit 13d886c

Please sign in to comment.