problem: wget can't download by command wget --bind-address=Your.External.Ip.Address -d -c -v -b -a "logo.txt" ftp://anonymous:[EMAIL PROTECTED]/incoming/Xenos/knigi/Programming/LinuxUni x/SHELL/PICTURES/LOGO.GIF logo.txt contains: -- DEBUG output created by Wget 1.9.1 on freebsd4.5.
--11:36:30-- ftp://anonymous:[EMAIL PROTECTED]/incoming/Xenos/knigi/Programming/Li nuxUnix/SHELL/PICTURES/LOGO.GIF => `LOGO.GIF' Connecting to 193.233.88.66:21... Releasing 0x807a0d0 (new refcount 0). Deleting unused 0x807a0d0. Closing fd 4 failed: Can't assign requested address. Releasing 0x807a0b0 (new refcount 0). Deleting unused 0x807a0b0. Retrying. ............................. -- so failure is in bind command. i tested the same command, but without --bind-address (logo.gif appeared on my hdd): -- DEBUG output created by Wget 1.9.1 on freebsd4.5.
--11:39:22-- ftp://anonymous:[EMAIL PROTECTED]/incoming/Xenos/knigi/Programming/Li nuxUnix/SHELL/PICTURES/LOGO.GIF => `LOGO.GIF' Connecting to 193.233.88.66:21... connected. Created socket 4. Releasing 0x807a0a0 (new refcount 0). Deleting unused 0x807a0a0. Logging in as anonymous ... 220 diamond.stup.ac.ru FTP server (Version wu-2.6.2-8) ready. ....... -- after some test: bug is when: ftp, with username and password, with bind address specifyed bug is not when: http, ftp without username and password looks like memory leaks. so i made some modification before bind: src/connect.c: -- ....... /* Bind the client side to the requested address. */ wget_sockaddr bsa; //!!!!! memset (&bsa,0,sizeof(bsa)); /!!!!!! wget_sockaddr_set_address (&bsa, ip_default_family, 0, &bind_address); if (bind (sock, &bsa.sa, sockaddr_len ())) .............. -- after it all downloads become sucesfull. i think better do memset in wget_sockaddr_set_address, but it is for your choose. best regards p.s. sorry for my english 8(
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail