From d7a6b80d47faa787c138d7c0ca41010964086b01 Mon Sep 17 00:00:00 2001 From: Cedric RICARD Date: Mon, 10 Nov 2008 08:43:05 +0000 Subject: [PATCH] Removing dns() call --- calexium_lib/net_services_protocols/ftp_client.anubis | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calexium_lib/net_services_protocols/ftp_client.anubis b/calexium_lib/net_services_protocols/ftp_client.anubis index dc3dc6d..7fec923 100644 --- a/calexium_lib/net_services_protocols/ftp_client.anubis +++ b/calexium_lib/net_services_protocols/ftp_client.anubis @@ -15,6 +15,7 @@ read system/message_transceiver.anubis read system/muscle.anubis read system/files.anubis read tools/basis.anubis +read network/dns.anubis define Maybe(One) receive_data @@ -134,8 +135,8 @@ public define Maybe(One) Word32 ip_port, String remote_file, String local_file - )= - if dns(server) is ok(ip_adr) then + ) = + if resolve_address(server) is success(ip_adr) then if connect( ip_adr, ip_port) is { error(_) then println("can't connect to ftp server"); failure, -- libgit2 0.21.4