diff options
author | Eric Andersen | 2003-10-31 09:31:46 +0000 |
---|---|---|
committer | Eric Andersen | 2003-10-31 09:31:46 +0000 |
commit | e6dc439b3a3fa2a64f9e938ac4e5810025c04242 (patch) | |
tree | bacb9f48301189de134d9f8edc2f1f45c65086c5 /networking/telnet.c | |
parent | 8179cf2b78a508a350c7497c1e234376f20f418f (diff) | |
download | busybox-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.zip busybox-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.tar.gz |
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
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index ac6ec98..92ddfae 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -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); |