mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-14 12:43:18 +00:00
20 lines
308 B
Go
20 lines
308 B
Go
|
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
|
||
|
}
|