1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-11 04:53:15 +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 4d38424e6c
commit 755d72a591

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)