Skip to content

Commit

Permalink
Update p2p/transport/webtransport/transport.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marten Seemann <[email protected]>
  • Loading branch information
MarcoPolo and marten-seemann committed Sep 19, 2022
1 parent 9a519f9 commit 9605f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/webtransport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (t *transport) Resolve(ctx context.Context, maddr ma.Multiaddr) ([]ma.Multi
return c.Protocol().Code == ma.P_QUIC
})
quicComponent, afterQuicMA := ma.SplitFirst(afterIncludingQuicMA)
sniComponent, err := ma.NewComponent("sni", sni)
sniComponent, err := ma.NewComponent(ma.ProtocolWithCode(ma.P_SNI).Name, sni)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9605f27

Please sign in to comment.