]> granicus.if.org Git - ejabberd/commitdiff
Use inet:gethostbyname instead of inet_res:getbyname
authorBadlop <badlop@process-one.net>
Fri, 26 Dec 2008 18:36:53 +0000 (18:36 +0000)
committerBadlop <badlop@process-one.net>
Fri, 26 Dec 2008 18:36:53 +0000 (18:36 +0000)
SVN Revision: 1758

src/ejabberd_s2s_out.erl

index 5f5d905f81ee6e94738744b92f2d52ccbc64e035..ab7820b96ef0a8e70a0feb42ec716e370adb94b7 100644 (file)
@@ -1010,12 +1010,12 @@ test_get_addr_port(Server) ->
 
 get_addrs(Host, Family) ->
     Type = case Family of
-              inet4 -> a;
-              ipv4 -> a;
-              inet6 -> aaaa;
-              ipv6 -> aaaa
+              inet4 -> inet;
+              ipv4 -> inet;
+              inet6 -> inet6;
+              ipv6 -> inet6
           end,
-    case inet_res:getbyname(Host, Type) of
+    case inet:gethostbyname(Host, Type) of
        {ok, #hostent{h_addr_list = Addrs}} ->
            ?DEBUG("~s of ~s resolved to: ~p~n", [Type, Host, Addrs]),
            Addrs;