coap_join_mcast_group_intf: fix interface selection on windows

This commit is contained in:
Mario Kicherer authored and Jon Shallow committed 2024-10-10 16:48:15 +01:00
1 parent 8e407cc514
commit 7b4a20f64e
1 file changed
+8 -1
+8 -1
View File
@@ -4706,7 +4706,14 @@ coap_join_mcast_group_intf_lkd(coap_context_t *ctx, const char *group_name,
}
}
}
#endif /* ! _WIN32 */
#else /* _WIN32 */
/*
* On Windows this function ignores the ifname variable so we unset this
* variable on this platform in any case in order to enable the interface
* selection from the bind address below.
*/
ifname = 0;
#endif /* _WIN32 */
/* Add in mcast address(es) to appropriate interface */
for (ainfo = resmulti; ainfo != NULL; ainfo = ainfo->ai_next) {