X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FServiceResolver.cs;h=a32efca8b795186bf19dd429e7dcc97944823680;hb=d6ce91c0b5258c2e107415704413f42edfab2c30;hp=a11721ac595aafd899201abcd7833d1b7ba33d28;hpb=b399626a5a741b21389bb46f6bbe8d0e35bd44fa;p=catta diff --git a/avahi-sharp/ServiceResolver.cs b/avahi-sharp/ServiceResolver.cs index a11721a..a32efca 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 == Protocol.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);