github.com/xmplusdev/xray-core@v1.8.10/transport/internet/httpupgrade/connection.go (about) 1 package httpupgrade 2 3 import "net" 4 5 type connnection struct { 6 net.Conn 7 remoteAddr net.Addr 8 } 9 10 func newConnection(conn net.Conn, remoteAddr net.Addr) *connnection { 11 return &connnection{ 12 Conn: conn, 13 remoteAddr: remoteAddr, 14 } 15 } 16 17 func (c *connnection) RemoteAddr() net.Addr { 18 return c.remoteAddr 19 }