]> git.meshlink.io Git - catta/commitdiff
ServiceResolver.cs: Only try to set ScopeId when the protocol is IPv6. Patch by
authorSjoerd Simons <sjoerd@debian.org>
Thu, 20 Mar 2008 23:43:32 +0000 (23:43 +0000)
committerSjoerd Simons <sjoerd@debian.org>
Thu, 20 Mar 2008 23:43:32 +0000 (23:43 +0000)
Sebastian Droge <slomo@circular-chaos.org>

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1754 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-sharp/ServiceResolver.cs

index a11721ac595aafd899201abcd7833d1b7ba33d28..b0f7c089d4eb522f4179b8a565185e91f1ac5b9a 100644 (file)
@@ -182,9 +182,11 @@ namespace Avahi
             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);