Xray-core/transport/internet/httpupgrade/connection.go

20 lines
304 B
Go
Raw Normal View History

package httpupgrade
import "net"
2024-07-11 22:20:06 +00:00
type connection struct {
net.Conn
remoteAddr net.Addr
}
2024-07-11 22:20:06 +00:00
func newConnection(conn net.Conn, remoteAddr net.Addr) *connection {
return &connection{
Conn: conn,
remoteAddr: remoteAddr,
}
}
2024-07-11 22:20:06 +00:00
func (c *connection) RemoteAddr() net.Addr {
return c.remoteAddr
}