mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
Fix(httpupgrade): X-Forwarded-For
header not read. (#3172)
This commit is contained in:
19
transport/internet/httpupgrade/connection.go
Normal file
19
transport/internet/httpupgrade/connection.go
Normal file
@ -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
|
||||
}
|
Reference in New Issue
Block a user