diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-10-31 09:31:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-10-31 09:31:46 +0000 |
commit | e6dc439b3a3fa2a64f9e938ac4e5810025c04242 (patch) | |
tree | bacb9f48301189de134d9f8edc2f1f45c65086c5 /networking/telnet.c | |
parent | 8179cf2b78a508a350c7497c1e234376f20f418f (diff) | |
download | busybox-w32-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.tar.gz busybox-w32-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.tar.bz2 busybox-w32-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.zip |
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 ac6ec98de..92ddfaebf 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -573,6 +573,7 @@ extern int telnet_main(int argc, char** argv) | |||
573 | char *host; | 573 | char *host; |
574 | char *port; | 574 | char *port; |
575 | int len; | 575 | int len; |
576 | struct sockaddr_in s_in; | ||
576 | #ifdef USE_POLL | 577 | #ifdef USE_POLL |
577 | struct pollfd ufds[2]; | 578 | struct pollfd ufds[2]; |
578 | #else | 579 | #else |
@@ -601,7 +602,8 @@ extern int telnet_main(int argc, char** argv) | |||
601 | 602 | ||
602 | host = argv[1]; | 603 | host = argv[1]; |
603 | 604 | ||
604 | G.netfd = xconnect(host, port); | 605 | bb_lookup_host(&s_in, host, port); |
606 | G.netfd = xconnect(&s_in); | ||
605 | 607 | ||
606 | setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one); | 608 | setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one); |
607 | 609 | ||