MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / generateConnectionID

Function generateConnectionID

internal/socks5/proxy.go:44–48  ·  view source on GitHub ↗

generateConnectionID creates a unique ID for tracking connections

()

Source from the content-addressed store, hash-verified

42
43// generateConnectionID creates a unique ID for tracking connections
44func generateConnectionID() string {
45 bytes := make([]byte, 8)
46 rand.Read(bytes)
47 return hex.EncodeToString(bytes)
48}
49
50// handleSOCKS5Connection handles a single SOCKS5 connection
51func (p *DefaultProxy) handleSOCKS5Connection(clientConn net.Conn, quicConn quic.Connection) {

Calls

no outgoing calls

Tested by

no test coverage detected