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 16, 2024
1 parent 8b45fdc commit 62d9e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libp2p/Libp2p.Protocols.Noise/NoiseProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task DialAsync(IChannel downChannel, IChannelFactory? upChannelFact
NoiseHandshakePayload? msg1Decoded = NoiseHandshakePayload.Parser.ParseFrom(buffer.AsSpan(0, msg1.BytesRead));
PublicKey? msg1KeyDecoded = PublicKey.Parser.ParseFrom(msg1Decoded.IdentityKey);
//var key = new byte[] { 0x1 }.Concat(clientStatic.PublicKey).ToArray();
if (_extensions.StreamMuxers.Any())
if (_extensions.StreamMuxers.Any())
{
var selectedProtocol = upChannelFactory?.SubProtocols.FirstOrDefault(proto => proto.Id == _extensions.StreamMuxers[0]);
context.SpecificProtocolRequest = new ChannelRequest
Expand Down

0 comments on commit 62d9e04

Please sign in to comment.