summaryrefslogtreecommitdiffstats
path: root/avahi-sharp
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@debian.org>2008-03-20 23:43:32 +0000
committerSjoerd Simons <sjoerd@debian.org>2008-03-20 23:43:32 +0000
commite3b5dd61112c364ee6cbf9ef8a0f79ddb9832f3a (patch)
treefadf02236402fbe2a9c7eb839e88655db0a61727 /avahi-sharp
parentb399626a5a741b21389bb46f6bbe8d0e35bd44fa (diff)
ServiceResolver.cs: Only try to set ScopeId when the protocol is IPv6. Patch by
Sebastian Droge <slomo@circular-chaos.org> git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1754 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp')
-rw-r--r--avahi-sharp/ServiceResolver.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/avahi-sharp/ServiceResolver.cs b/avahi-sharp/ServiceResolver.cs
index a11721a..b0f7c08 100644
--- a/avahi-sharp/ServiceResolver.cs
+++ b/avahi-sharp/ServiceResolver.cs
@@ -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);