fix: update gateway default X-forwarded-For (#1950)

Signed-off-by: Alone88 <anhaoyl@qq.com>
This commit is contained in:
Alone88 2024-06-24 16:50:22 +08:00 committed by GitHub
parent 8a3186c9b5
commit 2603c0f4c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ func NewDefault() Configuration {
ProxySetHeaders: map[string]string{
"Host": "$best_http_host",
"X-Real-IP": "$remote_addr",
"X-Forwarded-For": "$remote_addr",
"X-Forwarded-For": "$proxy_add_x_forwarded_for",
"X-Forwarded-Host": "$best_http_host",
"X-Forwarded-Port": "$pass_port",
"X-Forwarded-Proto": "$pass_access_scheme",