Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9cfddf5

Browse files
committedMar 13, 2024
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

Lines changed: 2 additions & 0 deletions
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)
Failed to load comments.