#24 res_init() is not always implicitly called

open
nobody
None
5
2009-02-27
2009-02-27
No

I have built tsocks with --disable-hostnames, --enable-socksdns.

On my Debian sid system, an application using getpeername does not seem to implicly call res_init(), so that the resolver options are never set to use TCP DNS methods.

The only way I found to fix this was to explicitly call res_init() at the end of tsocks _init().

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks