Skip to content

Commit 171e36a

Browse files
authored
transport: Reject secondary connections with different connection IDs (#176)
This PR ensures that the transport manager rejects secondary connections. When the secondary connection is rejected, the internal `dial_record` is preserved. Added a test to validate this behavior, with multiple wrong endpoints. Part of: #172 Will keep the issue opened for to further into it. cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <[email protected]>
1 parent fc8792d commit 171e36a

File tree

3 files changed

+299
-20
lines changed

3 files changed

+299
-20
lines changed

src/transport/manager/address.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct AddressRecord {
3434
/// Address.
3535
address: Multiaddr,
3636

37-
/// Connection ID, if specifed.
37+
/// Connection ID, if specified.
3838
connection_id: Option<ConnectionId>,
3939
}
4040

0 commit comments

Comments
 (0)