mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
Add Configuration.RemoteAddrHeadersForce as requested at #1567 and change RemoteAddrHeaders from map to string slice
Read HISTORY.md entry
This commit is contained in:
@@ -4,6 +4,6 @@ FireMethodNotAllowed = true
|
||||
DisableBodyConsumptionOnUnmarshal = false
|
||||
TimeFormat = "Mon, 01 Jan 2006 15:04:05 GMT"
|
||||
Charset = "utf-8"
|
||||
|
||||
RemoteAddrHeaders = ["X-Real-Ip", "X-Forwarded-For", "CF-Connecting-IP"]
|
||||
[Other]
|
||||
MyServerName = "iris"
|
||||
|
||||
@@ -9,8 +9,8 @@ SSLProxyHeaders:
|
||||
HostProxyHeaders:
|
||||
X-Host: true
|
||||
RemoteAddrHeaders:
|
||||
X-Real-Ip: true
|
||||
X-Forwarded-For: true
|
||||
CF-Connecting-IP: true
|
||||
- X-Real-Ip
|
||||
- X-Forwarded-For
|
||||
- CF-Connecting-IP
|
||||
Other:
|
||||
Addr: :8080
|
||||
|
||||
Reference in New Issue
Block a user