Bug#472001: tsocks: "server = localhost" does not work
> "Nico" == Nico Golde <[EMAIL PROTECTED]> writes: Nico> Can you try installing 1.8beta5-6 from snapshot.debian.net? Nico> I think something in the autofoo stuff changed. Hi Nico (and BTS); I finally got around to this, and I see the same behaviour for 1.8beta5-6. David -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#472001: tsocks: "server = localhost" does not work
Hi David, * David Bremner <[EMAIL PROTECTED]> [2008-03-22 13:51]: > > "Nico" == Nico Golde <[EMAIL PROTECTED]> writes: > > "Nico" == Nico Golde <[EMAIL PROTECTED]> writes: > Nico> David Bremner <[EMAIL PROTECTED]> [2008-03-22 02:37]: > >> There seems to be a bug in the configuration/build process. I > >> just grab the source and build on a more or less up to date > >> sid, and HOSTNAMES is defined to 0, even though > >> --enable-hostnames is passed to configure. > > Nico> That does not explain it because I tried it with 1.8beta5-9. > > Yeah, it's a puzzle. The following code, copied from common.c works > fine on my host. Could you provide an strace of tsocks? Kind regards Nico -- Nico Golde - http://www.ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted. pgpGSSdMcqpT0.pgp Description: PGP signature
Bug#472001: tsocks: "server = localhost" does not work
> "Nico" == Nico Golde <[EMAIL PROTECTED]> writes: > "Nico" == Nico Golde <[EMAIL PROTECTED]> writes: Nico> David Bremner <[EMAIL PROTECTED]> [2008-03-22 02:37]: >> There seems to be a bug in the configuration/build process. I >> just grab the source and build on a more or less up to date >> sid, and HOSTNAMES is defined to 0, even though >> --enable-hostnames is passed to configure. Nico> That does not explain it because I tried it with 1.8beta5-9. Yeah, it's a puzzle. The following code, copied from common.c works fine on my host. #include #include #include #include #include int main(int argc, char** argv){ char *host="localhost"; struct hostent *new; struct in_addr *ip; unsigned int hostaddr; if ((new = gethostbyname(host)) == (struct hostent *) 0) { return(-1); } else { ip = ((struct in_addr *) * new->h_addr_list); hostaddr = ip -> s_addr; printf("Connecting to %s...\n", inet_ntoa(*ip)); } return 0; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#472001: tsocks: "server = localhost" does not work
Hi David, * David Bremner <[EMAIL PROTECTED]> [2008-03-22 02:37]: > There seems to be a bug in the configuration/build process. I just > grab the source and build on a more or less up to date sid, and > HOSTNAMES is defined to 0, even though --enable-hostnames is passed to > configure. That does not explain it because I tried it with 1.8beta5-9. Kind regards Nico -- Nico Golde - http://www.ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted. pgpDN0NG1mKxj.pgp Description: PGP signature
Bug#472001: tsocks: "server = localhost" does not work
There seems to be a bug in the configuration/build process. I just grab the source and build on a more or less up to date sid, and HOSTNAMES is defined to 0, even though --enable-hostnames is passed to configure. David -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#472001: tsocks: "server = localhost" does not work
tags 472001 + moreinfo thanks * David Bremner <[EMAIL PROTECTED]> [2008-03-21 18:27]: > Although the documentation says hostnames are supported, specifying > "server = localhost" does not work, although > "server = 127.0.0.1" does How do you notice that it does not? Cause it works fine here. Looking at the code I see also no reason why this should not work: unsigned int resolve_ip(char *host, int showmsg, int allownames) { struct hostent *new; unsigned inthostaddr; struct in_addr *ip; if ((hostaddr = inet_addr(host)) == (unsigned int) -1) { /* We couldn't convert it as a numerical ip so */ /* try it as a dns name*/ if (allownames) { #ifdef HAVE_GETHOSTBYNAME if ((new = gethostbyname(host)) == (struct hostent *) 0) { #endif return(-1); #ifdef HAVE_GETHOSTBYNAME } else { ip = ((struct in_addr *) * new->h_addr_list); hostaddr = ip -> s_addr; if (showmsg) printf("Connecting to %s...\n", inet_ntoa(*ip)); } #endif } else return(-1); } return (hostaddr); } So if the address is no numerical address (inet_addr(host)) gethostbyname is used to resolve it. Kind regards Nico -- Nico Golde - http://www.ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted. pgpViU9fTkTYZ.pgp Description: PGP signature
Bug#472001: tsocks: "server = localhost" does not work
Package: tsocks Version: 1.8beta5-9 Severity: normal Although the documentation says hostnames are supported, specifying "server = localhost" does not work, although "server = 127.0.0.1" does -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages tsocks depends on: ii libc6 2.7-9 GNU C Library: Shared libraries tsocks recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]