MCPcopy Create free account
hub / github.com/coder/coder / GetNetInfo

Method GetNetInfo

tailnet/conn.go:474–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472}
473
474func (c *Conn) GetNetInfo() *tailcfg.NetInfo {
475 c.mutex.Lock()
476 defer c.mutex.Unlock()
477 return c.lastNetInfo.Clone()
478}
479
480func (c *Conn) SetTunnelDestination(id uuid.UUID) {
481 c.configMaps.setTunnelDestination(id)

Callers 2

pingMethod · 0.80
HandleNetcheckMethod · 0.80

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected