MCPcopy
hub / github.com/tailscale/tailscale / ConnIsFromProxy

Method ConnIsFromProxy

control/controlhttp/http_test.go:395–399  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

393}
394
395func (s *socksProxy) ConnIsFromProxy(addr string) bool {
396 s.Lock()
397 defer s.Unlock()
398 return s.clientConnAddrs[addr]
399}
400
401type httpProxy struct {
402 useTLS bool // take incoming connections over TLS

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected