Update https.go

pull/825/head
bboysoul 2021-06-29 13:55:45 +08:00 committed by GitHub
parent 84835a95af
commit 61a25e7315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ func buildMyHttpsRequest(hostName string, c net.Conn) *http.Request {
addr = strings.Split(addr, ":")[0]
r.Header.Set("X-Forwarded-For", addr)
r.Header.Set("X-Real-IP", addr)
r.Header.Set("X-IP", addr)
return r
}