mirror of https://github.com/ehang-io/nps
Update https.go
parent
3c4d626e91
commit
54df095109
|
@ -192,8 +192,8 @@ func buildMyHttpsRequest(hostName string, c net.Conn) *http.Request {
|
||||||
r.URL.Scheme = "https"
|
r.URL.Scheme = "https"
|
||||||
r.Host = hostName
|
r.Host = hostName
|
||||||
logs.Trace("start add header")
|
logs.Trace("start add header")
|
||||||
r.Header.Set("X-Forwarded-For", "1.1.1.1")
|
r.Header.Set("X-Forwarded-For", c.RemoteAddr().String())
|
||||||
r.Header.Set("X-Real-IP", "1.1.1.1")
|
r.Header.Set("X-Real-IP", c.RemoteAddr().String())
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue