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

Method TailnetConn

agent/agent.go:345–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343}
344
345func (a *agent) TailnetConn() *tailnet.Conn {
346 a.closeMutex.Lock()
347 defer a.closeMutex.Unlock()
348 return a.network
349}
350
351func (a *agent) init() {
352 // pass the "hard" context because we explicitly close the SSH server as part of graceful shutdown.

Callers 1

HandleNetcheckMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected