All pastes #951007 Raw Edit

Etwas

public text v1 · immutable
·published 2008-03-20 23:41 UTC
rendered paste body
Index: ServiceResolver.cs
===================================================================
--- ServiceResolver.cs	(Revision 1753)
+++ ServiceResolver.cs	(Arbeitskopie)
@@ -182,9 +182,11 @@
             info.Name = Utility.PtrToString (name);
             info.HostName = Utility.PtrToString (host);
             info.Address = Utility.PtrToAddress (address);
-            info.Address.ScopeId = iface;
             info.Port = port;
 
+	    if (proto == IPv6)
+	      info.Address.ScopeId = iface;
+
             ArrayList txtlist = new ArrayList ();
             for (IntPtr l = txt; l != IntPtr.Zero; l = avahi_string_list_get_next (l)) {
                 IntPtr buf = avahi_string_list_get_text (l);