mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Fix(httpupgrade): X-Forwarded-For
header not read. (#3172)
This commit is contained in:
parent
70a5fe9a25
commit
2cafb3ef89
2 changed files with 34 additions and 0 deletions
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue