Skip to content

Commit

Permalink
chore: cleanup old workaround (#10369)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo authored Mar 19, 2024
1 parent 8559985 commit 9a5f5e7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/ipfs/kubo/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,10 +930,6 @@ func serveTrustlessGatewayOverLibp2p(cctx *oldcmds.Context) (<-chan error, error
StreamHost: node.PeerHost,
}

tmpProtocol := protocol.ID("/kubo/delete-me")
h.SetHTTPHandler(tmpProtocol, http.NotFoundHandler())
h.WellKnownHandler.RemoveProtocolMeta(tmpProtocol)

h.WellKnownHandler.AddProtocolMeta(gatewayProtocolID, p2phttp.ProtocolMeta{Path: "/"})
h.ServeMux = http.NewServeMux()
h.ServeMux.Handle("/", handler)
Expand Down

0 comments on commit 9a5f5e7

Please sign in to comment.