MCPcopy Index your code
hub / github.com/coder/coder / InstallCaptureHook

Method InstallCaptureHook

tailnet/conn.go:488–492  ·  view source on GitHub ↗
(f capture.Callback)

Source from the content-addressed store, hash-verified

486}
487
488func (c *Conn) InstallCaptureHook(f capture.Callback) {
489 c.mutex.Lock()
490 defer c.mutex.Unlock()
491 c.wireguardEngine.InstallCaptureHook(f)
492}
493
494func (c *Conn) MagicsockSetDebugLoggingEnabled(enabled bool) {
495 c.magicConn.SetDebugLoggingEnabled(enabled)

Callers 1

NewConnFunction · 0.80

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected