feat(agent): add http debug routes for magicsock (#7287)

This commit is contained in:
Colin Adler
2023-04-26 13:01:49 -05:00
committed by GitHub
parent 272573e9f0
commit 3eb7f06bf1
4 changed files with 58 additions and 9 deletions
+4
View File
@@ -828,6 +828,10 @@ func (c *Conn) SetConnStatsCallback(maxPeriod time.Duration, maxConns int, dump
c.tunDevice.SetStatistics(connStats)
}
func (c *Conn) MagicsockServeHTTPDebug(w http.ResponseWriter, r *http.Request) {
c.magicConn.ServeHTTPDebug(w, r)
}
type listenKey struct {
network string
host string