Add logging

This commit is contained in:
Owen
2026-04-11 21:56:28 -07:00
parent 342af9e42d
commit 12776d65c1
5 changed files with 261 additions and 3 deletions

View File

@@ -394,6 +394,16 @@ func (net *Net) SetAccessLogSender(fn SendFunc) {
}
}
// SetHTTPRequestLogSender configures the function used to send compressed HTTP
// request log batches to the server. This should be called once the websocket
// client is available.
func (net *Net) SetHTTPRequestLogSender(fn SendFunc) {
tun := (*netTun)(net)
if tun.proxyHandler != nil {
tun.proxyHandler.SetHTTPRequestLogSender(fn)
}
}
type PingConn struct {
laddr PingAddr
raddr PingAddr