mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-21 20:56:06 +03:00
20 lines
304 B
Go
20 lines
304 B
Go
package httpupgrade
|
|
|
|
import "net"
|
|
|
|
type connection struct {
|
|
net.Conn
|
|
remoteAddr net.Addr
|
|
}
|
|
|
|
func newConnection(conn net.Conn, remoteAddr net.Addr) *connection {
|
|
return &connection{
|
|
Conn: conn,
|
|
remoteAddr: remoteAddr,
|
|
}
|
|
}
|
|
|
|
func (c *connection) RemoteAddr() net.Addr {
|
|
return c.remoteAddr
|
|
}
|