mirror of https://github.com/rclone/rclone.git
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:
parent
4d38424e6c
commit
755d72a591
|
@ -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
|
// 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
|
// FIXME split these up into individual functions
|
||||||
router.Get("/*", s.handler)
|
router.Get("/*", s.handler)
|
||||||
|
|
Loading…
Reference in New Issue