Update https.go

pull/825/head
bboysoul 2021-06-29 12:33:34 +08:00 committed by GitHub
parent accb09ef34
commit 3c4d626e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -192,8 +192,8 @@ func buildMyHttpsRequest(hostName string, c net.Conn) *http.Request {
r.URL.Scheme = "https"
r.Host = hostName
logs.Trace("start add header")
r.Header.Set("X-Forwarded-For", '1.1.1.1')
r.Header.Set("X-Real-IP", '1.1.1.1')
r.Header.Set("X-Forwarded-For", "1.1.1.1")
r.Header.Set("X-Real-IP", "1.1.1.1")
return r
}