1
1
<%- |
2
2
String $header,
3
- Optional[Array[Variant[ Stdlib::Host,Stdlib::IP::Address]]] $internal_proxy = undef,
3
+ Optional[Array[Stdlib::Host]] $internal_proxy = undef,
4
4
Optional[Stdlib::Absolutepath] $internal_proxy_list = undef,
5
5
Optional[String] $proxies_header = undef,
6
6
Boolean $proxy_protocol = undef,
7
- Optional[Array[Variant[ Stdlib::Host,Stdlib::IP::Address]]] $proxy_protocol_exceptions = undef,
7
+ Optional[Array[Stdlib::Host]] $proxy_protocol_exceptions = undef,
8
8
Optional[Array[Stdlib::IP::Address]] $trusted_proxy = undef,
9
9
Optional[Stdlib::Absolutepath] $trusted_proxy_list = undef,
10
10
| -%>
@@ -14,7 +14,7 @@ RemoteIPHeader <%= $header %>
14
14
<%- if $internal_proxy { -%>
15
15
# Declare client intranet IP addresses trusted to present
16
16
# the RemoteIPHeader value
17
- <%- [ $internal_proxy].flatten .each |$proxy| { -%>
17
+ <%- $internal_proxy.each |$proxy| { -%>
18
18
RemoteIPInternalProxy <%= $proxy %>
19
19
<%- } -%>
20
20
<%- } -%>
@@ -33,15 +33,15 @@ RemoteIPProxyProtocol On
33
33
<%- } -%>
34
34
35
35
<%- if $proxy_protocol_exceptions { -%>
36
- <%- [ $proxy_protocol_exceptions].flatten .each |$exception| { -%>
36
+ <%- $proxy_protocol_exceptions.each |$exception| { -%>
37
37
RemoteIPProxyProtocolExceptions <%= $exception %>
38
38
<%- } -%>
39
39
<%- } -%>
40
40
41
41
<%- if $trusted_proxy { -%>
42
42
# Declare client intranet IP addresses trusted to present
43
43
# the RemoteIPHeader value
44
- <%- [ $trusted_proxy].flatten .each |$proxy| { -%>
44
+ <%- $trusted_proxy.each |$proxy| { -%>
45
45
RemoteIPTrustedProxy <%= $proxy %>
46
46
<%- } -%>
47
47
<%- } -%>
0 commit comments