MCPcopy Create free account
hub / github.com/XTLS/Go / LocalAddr

Method LocalAddr

conn.go:151–153  ·  view source on GitHub ↗

Access to net.Conn methods. Cannot just embed net.Conn because that would export the struct field too. LocalAddr returns the local network address.

()

Source from the content-addressed store, hash-verified

149
150// LocalAddr returns the local network address.
151func (c *Conn) LocalAddr() net.Addr {
152 return c.conn.LocalAddr()
153}
154
155// RemoteAddr returns the remote network address.
156func (c *Conn) RemoteAddr() net.Addr {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected