mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(agent): add http debug routes for magicsock (#7287)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user