Skip to content

Commit

Permalink
Update NoiseProtocol.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rose2221 authored Aug 22, 2024
1 parent 1dd8654 commit bef6bc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libp2p/Libp2p.Protocols.Noise/NoiseProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public async Task DialAsync(IChannel downChannel, IChannelFactory? upChannelFact
.ToList();

IProtocol commonMuxer = multiplexerSettings.Multiplexers.FirstOrDefault(m => responderMuxers.Contains(m.Id));

if (commonMuxer != null)
{
context.SpecificProtocolRequest = new ChannelRequest
Expand Down Expand Up @@ -164,6 +165,7 @@ public async Task ListenAsync(IChannel downChannel, IChannelFactory? upChannelFa
.ToList();

IProtocol commonMuxer = multiplexerSettings.Multiplexers.FirstOrDefault(m => initiatorMuxers.Contains(m.Id));

if (commonMuxer != null)
{
context.SpecificProtocolRequest = new ChannelRequest
Expand Down

0 comments on commit bef6bc2

Please sign in to comment.