[Mono-dev] Patch for System.Net.Dns.GetHostAddresses
Atsushi Eno
atsushi at ximian.com
Thu Jul 6 04:27:33 EDT 2006
Hello,
Petri Latvala wrote:
> On Fri, Jun 30, 2006 at 01:39:27PM +0300, Petri Latvala wrote:
>> MSDN says GetHostAddresses doesn't query DNS if given an IP address,
>> but simply constructs an IPAddress array and returns it. Mono's
>> implementation queries DNS to find the names for the IP, then
>> discards them, and returns an array of IPAddress. Here's a patch to
>> not query when given an IP, and a test for it.
>
> The patch broke the case when passing an empty string. Here's a
> revised patch that also makes GetHostEntry work correctly with the
> empty string argument.
Thanks for the patch. It looks good. If no one has further comments
I'll check it in svn.
Atsushi Eno
More information about the Mono-devel-list
mailing list