mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
308 B
20 lines
308 B
package httpupgrade
|
|
|
|
import "net"
|
|
|
|
type connnection struct {
|
|
net.Conn
|
|
remoteAddr net.Addr
|
|
}
|
|
|
|
func newConnection(conn net.Conn, remoteAddr net.Addr) *connnection {
|
|
return &connnection{
|
|
Conn: conn,
|
|
remoteAddr: remoteAddr,
|
|
}
|
|
}
|
|
|
|
func (c *connnection) RemoteAddr() net.Addr {
|
|
return c.remoteAddr
|
|
}
|