[Mono-bugs] [Bug 79211][Nor] Changed - Hostname Resolution Broken in 1.1.17
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 5 16:42:44 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bugzilla at patearl.net.
http://bugzilla.ximian.com/show_bug.cgi?id=79211
--- shadow/79211 2006-09-05 16:21:55.000000000 -0400
+++ shadow/79211.tmp.31992 2006-09-05 16:42:44.000000000 -0400
@@ -68,6 +68,20 @@
Adding code that runs the CheckProtocolSupport() function right before
GetHostByName_internal() did not help.
Is it possible there are two instances of the same static variable?
Perhaps the mono internal code to look up the values of the static
variables is broken?
+
+------- Additional Comments From bugzilla at patearl.net 2006-09-05 16:42 -------
+As a quick hack to work around this issue, I rearranged the checks in
+mono/metadata/socket-io.c:get_family_hint() as follows:
+
+ if(ipv4_enabled == 1 && ipv6_enabled != 1) {
+ return(PF_INET);
+ } else if(ipv4_enabled != 1 && ipv6_enabled == 1) {
+ return(PF_INET6);
+ } else {
+ return(PF_UNSPEC);
+ }
+
+That ordering makes a little more sense to me in any case.
More information about the mono-bugs
mailing list