Rework wget, the xconnect interface, and its various clients
in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik
This commit is contained in:
@ -573,6 +573,7 @@ extern int telnet_main(int argc, char** argv)
|
||||
char *host;
|
||||
char *port;
|
||||
int len;
|
||||
struct sockaddr_in s_in;
|
||||
#ifdef USE_POLL
|
||||
struct pollfd ufds[2];
|
||||
#else
|
||||
@ -601,7 +602,8 @@ extern int telnet_main(int argc, char** argv)
|
||||
|
||||
host = argv[1];
|
||||
|
||||
G.netfd = xconnect(host, port);
|
||||
bb_lookup_host(&s_in, host, port);
|
||||
G.netfd = xconnect(&s_in);
|
||||
|
||||
setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one);
|
||||
|
||||
|
Reference in New Issue
Block a user