Skip to content

Commit 9cfddf5

Browse files
committed
expose magicsock handler on agent endpoint
1 parent 147356f commit 9cfddf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/api.go

+2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ func (a *agent) apiHandler() http.Handler {
3535
ignorePorts: cpy,
3636
cacheDuration: cacheDuration,
3737
}
38+
hdh := a.HTTPDebug()
3839
r.Get("/api/v0/listening-ports", lp.handler)
40+
r.Get("/api/v0/debug/magicsock", hdh.ServeHTTP)
3941

4042
return r
4143
}

0 commit comments

Comments
 (0)