Skip to content

Commit

Permalink
Back out unrelated change
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jul 13, 2023
1 parent 7773888 commit 0f7e912
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions p2p/transport/webtransport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,10 @@ func (t *transport) CanDial(addr ma.Multiaddr) bool {
}

func (t *transport) Listen(laddr ma.Multiaddr) (tpt.Listener, error) {
isWebTransport, certhashCount := IsWebtransportMultiaddr(laddr)
isWebTransport, _ := IsWebtransportMultiaddr(laddr)
if !isWebTransport {
return nil, fmt.Errorf("cannot listen on non-WebTransport addr: %s", laddr)
}
if certhashCount > 0 {
return nil, fmt.Errorf("cannot listen on a specific certhash non-WebTransport addr: %s", laddr)
}
if t.staticTLSConf == nil {
t.listenOnce.Do(func() {
t.certManager, t.listenOnceErr = newCertManager(t.privKey, t.clock)
Expand Down

0 comments on commit 0f7e912

Please sign in to comment.