From 755d72a5919e6409c1c31840c3fdafba592e6435 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 25 Mar 2025 15:30:49 +0000 Subject: [PATCH] rc: fix debug/* commands not being available over unix sockets This was caused by an incorrect handler URL which was passing the debug/* commands to the debug/pprof handler by accident. This only happened when using unix sockets. --- fs/rc/rcserver/rcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/rc/rcserver/rcserver.go b/fs/rc/rcserver/rcserver.go index e6e82175b..7b6622c43 100644 --- a/fs/rc/rcserver/rcserver.go +++ b/fs/rc/rcserver/rcserver.go @@ -123,7 +123,7 @@ func newServer(ctx context.Context, opt *rc.Options, mux *http.ServeMux) (*Serve ) // Add the debug handler which is installed in the default mux - router.Handle("/debug/*", mux) + router.Handle("/debug/pprof/*", mux) // FIXME split these up into individual functions router.Get("/*", s.handler)