mirror of https://github.com/XTLS/Xray-core
Fix(httpupgrade): `X-Forwarded-For` header not read. (#3172)
parent
70a5fe9a25
commit
2cafb3ef89
@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
Loading…
Reference in new issue