equal
deleted
inserted
replaced
|
1 # Declare the header field which should be parsed for useragent IP addresses |
|
2 RemoteIPHeader <%= @header %> |
|
3 |
|
4 <%- if @proxy_ips -%> |
|
5 # Declare client intranet IP addresses trusted to present |
|
6 # the RemoteIPHeader value |
|
7 <%- [@proxy_ips].flatten.each do |proxy| -%> |
|
8 RemoteIPInternalProxy <%= proxy %> |
|
9 <%- end -%> |
|
10 <%- end -%> |
|
11 |
|
12 <%- if @proxies_header -%> |
|
13 # Declare the header field which will record all intermediate IP addresses |
|
14 RemoteIPProxiesHeader <%= @proxies_header %> |
|
15 <%- end -%> |
|
16 |
|
17 <%- if @trusted_proxy_ips -%> |
|
18 # Declare client intranet IP addresses trusted to present |
|
19 # the RemoteIPHeader value |
|
20 <%- [@trusted_proxy_ips].flatten.each do |proxy| -%> |
|
21 RemoteIPTrustedProxy <%= proxy %> |
|
22 <%- end -%> |
|
23 <%- end -%> |