diff options
Diffstat (limited to '')
-rw-r--r-- | src/ejabberd_http.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl index 98567777..b764ee36 100644 --- a/src/ejabberd_http.erl +++ b/src/ejabberd_http.erl @@ -481,7 +481,8 @@ analyze_ip_xff({IPLast, Port}, XFF, Host) -> [jlib:ip_to_list(IPLast)], TrustedProxies = ejabberd_config:get_option( {trusted_proxies, Host}, - fun(TPs) -> + fun(all) -> all; + (TPs) -> [iolist_to_binary(TP) || TP <- TPs] end, []), IPClient = case is_ipchain_trusted(ProxiesIPs, @@ -879,5 +880,6 @@ transform_listen_option(Opt, Opts) -> [Opt|Opts]. opt_type(trusted_proxies) -> - fun (TPs) -> [iolist_to_binary(TP) || TP <- TPs] end; + fun (all) -> all; + (TPs) -> [iolist_to_binary(TP) || TP <- TPs] end; opt_type(_) -> [trusted_proxies]. |