]> granicus.if.org Git - ejabberd/commitdiff
Do no add 127.0.0.1 address to trusted_proxies list by default
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 24 Oct 2018 13:16:32 +0000 (15:16 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 24 Oct 2018 13:16:32 +0000 (15:16 +0200)
src/ejabberd_http.erl

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