Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
client/network: Stop sending noise legacy handshake (#7211)
Browse files Browse the repository at this point in the history
Stop sending legacy handshake payloads, i.e. length-prefixed protobuf
payloads inside a length-prefixed noise frame. Receiving of such legacy
handshakes is still supported, thus backwards compatibility is given.
  • Loading branch information
mxinden authored Sep 29, 2020
1 parent 0fe26f7 commit 4ff236f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/network/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ pub fn build_transport(

// Legacy noise configurations for backward compatibility.
let mut noise_legacy = noise::LegacyConfig::default();
noise_legacy.send_legacy_handshake = true;
noise_legacy.recv_legacy_handshake = true;

let mut xx_config = noise::NoiseConfig::xx(noise_keypair_spec);
Expand Down

0 comments on commit 4ff236f

Please sign in to comment.