--- ORBit2-2.14.3/linc2/src/linc-connection.c.non-local-ipv4 2006-09-10 14:43:46.000000000 -0400 +++ ORBit2-2.14.3/linc2/src/linc-connection.c 2006-09-10 14:44:00.000000000 -0400 @@ -495,27 +495,6 @@ CNX_UNLOCK (cnx); } -static unsigned long -get_inet_addr (const char *str) -{ - struct hostent *hp; - struct in_addr *addr_ptr; - unsigned long addr; - - if (isdigit (*str)) { - addr = inet_addr (str); - } else { - if ((hp = gethostbyname (str)) != NULL) { - - addr_ptr = (struct in_addr *) hp->h_addr; - - addr = inet_addr (inet_ntoa (*addr_ptr)); - } - } - - return addr; -} - static gboolean link_connection_do_initiate (LinkConnection *cnx, const char *proto_name, @@ -535,21 +514,6 @@ if (!proto) return FALSE; - if (host && (strcmp (proto_name, "IPv4") == 0)) { - - const char *local_host; - local_host = link_get_local_hostname (); - - if (strcmp (host, local_host)) { - unsigned long inet_addr_host, inet_addr_local_host; - inet_addr_host = get_inet_addr (host); - inet_addr_local_host = get_inet_addr (local_host); - - if (inet_addr_host != inet_addr_local_host) - return FALSE; - } - } - saddr = link_protocol_get_sockaddr ( proto, host, service, &saddr_len);