From b93bd6e39e76a852b9f634b18b167ea2c8f56a22 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 13 Mar 2024 16:08:25 -0700 Subject: [PATCH] Cleanup old workaround --- cmd/ipfs/kubo/daemon.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/ipfs/kubo/daemon.go b/cmd/ipfs/kubo/daemon.go index b966a630ee5..0fcd0e55623 100644 --- a/cmd/ipfs/kubo/daemon.go +++ b/cmd/ipfs/kubo/daemon.go @@ -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)