]> granicus.if.org Git - ejabberd/commitdiff
Use httpc instead of the deprecated http
authorBadlop <badlop@process-one.net>
Sat, 26 Nov 2011 16:20:06 +0000 (17:20 +0100)
committerBadlop <badlop@process-one.net>
Sat, 26 Nov 2011 16:20:06 +0000 (17:20 +0100)
src/mod_ip_blacklist.erl

index 718a25b1e29f476344f0f5bbbe1b327453f717e1..f8e73e1d3113fb366e1218cfc5f01e1fa3ebfe90 100644 (file)
@@ -92,7 +92,7 @@ loop(_State) ->
 %% TODO: Support comment lines starting by %
 update_bl_c2s() ->
     ?INFO_MSG("Updating C2S Blacklist", []),
-    case http:request(?BLC2S) of
+    case httpc:request(?BLC2S) of
        {ok, {{_Version, 200, _Reason}, _Headers, Body}} ->
            IPs = string:tokens(Body,"\n"),
            ets:delete_all_objects(bl_c2s),