1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

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.
This commit is contained in:
Nick Craig-Wood
2025-03-25 15:30:49 +00:00
parent f46787dcc3
commit 46dcc0eaf6

View File

@@ -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)