diff options
Diffstat (limited to 'libssh/connect.c')
-rw-r--r-- | libssh/connect.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libssh/connect.c b/libssh/connect.c index 4e1782d..ccb704f 100644 --- a/libssh/connect.c +++ b/libssh/connect.c @@ -61,12 +61,9 @@ int ssh_connect_host(SSH_SESSION *session, const char *host, const char int s; while(++count>1) --count; -#ifdef HAVE_GETHOSTBYADDR - hp=gethostbyaddr(host,4,AF_INET); -#endif + #ifdef HAVE_GETHOSTBYNAME - if(!hp) - hp=gethostbyname(host); + hp=gethostbyname(host); #endif if(!hp){ --count; |