mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] How does name resolving work?


From: Thoran
Subject: Re: [Mldonkey-users] How does name resolving work?
Date: 14 May 2003 16:41:02 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Christian> Hello, I'd like to come back to the name resolving
Christian> problem. How does it actually work?

Christian> I was able too start mlnet in a chroot environment with
Christian> hopefully all necessary libraries. But I still can not
Christian> resolve any hostname in torrent files. I suspected my
Christian> firewall, but which ports will be used to resolve the
Christian> hostname? The redirector port? This port is open.  I assume
Christian> before jailed mlnet can resolve, this is a line extract
Christian> from my logfiles: Resolving [ocbmaurice.dyns.net]
Christian> ...Resolving [members.lycos.co.uk] ...redirector info
Christian> received

The problem is very easy to fix and I already submitted a patch for
this.  

Here is it:
Index: src/config/unix/mlUnix.ml
===================================================================
RCS file: /cvsroot/mldonkey/mldonkey/src/config/unix/mlUnix.ml,v
retrieving revision 1.1
diff -r1.1 mlUnix.ml
85c85,90
< let chroot = Unix.chroot  
---
> let chroot s = 
>   (try
>     let _ = Unix.gethostbyname "www.gnu.org" in ()
>   with 
>    Not_found -> lprintf "www.gnu.org not found ?! don't care...");
>   Unix.chroot  s

Now, you just have to convince someone to put it in the CVS (or
correct the bug by a more appropriate method if this is a bad way).

After applying this patch, I realized that mldonkey was able to do
gnutella, soulseek, bittorrent.  Before that,  I was convinced it was
a legend because it never worked.
Thus, maintainers, if you want paranoid people like me to use all the
possibilities of your program (this means more bugreports and more
patches), please correct this very annoying bug ASAP.

Cheers,
   Thoran

ps:
There are a lot of paranoid.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]