25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Do no add 127.0.0.1 address to trusted_proxies list by default

This commit is contained in:
Paweł Chmielowski 2018-10-24 15:16:32 +02:00
parent e369a93809
commit 432ca80db6

View File

@ -573,7 +573,7 @@ is_ipchain_trusted(UserIPs, Masks) ->
lists:any( lists:any(
fun({Mask, MaskLen}) -> fun({Mask, MaskLen}) ->
acl:ip_matches_mask(IP2, Mask, MaskLen) acl:ip_matches_mask(IP2, Mask, MaskLen)
end, [{{127,0,0,1}, 8} | Masks]); end, Masks);
_ -> _ ->
false false
end end