fix debug handler in proxy
This commit is contained in:
parent
de3c3b27b2
commit
b2980aecb7
@ -40,8 +40,9 @@ func New(name string, p proxy.Proxy) *Server {
|
|||||||
// only register this once
|
// only register this once
|
||||||
once.Do(func() {
|
once.Do(func() {
|
||||||
server.DefaultRouter.Handle(
|
server.DefaultRouter.Handle(
|
||||||
|
// inject the debug handler
|
||||||
server.DefaultRouter.NewHandler(
|
server.DefaultRouter.NewHandler(
|
||||||
handler.DefaultHandler,
|
handler.NewHandler(),
|
||||||
server.InternalHandler(true),
|
server.InternalHandler(true),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user