Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Jan 8, 2025
1 parent d7ad10e commit 3c720c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/util/ares_iface_ips.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ static ares_status_t ares_iface_ips_enumerate(ares_iface_ips_t *ips,
status = ares_iface_ips_add(ips, addrflag, ifname, &addr,
#if _WIN32_WINNT >= 0x0600
ipaddr->OnLinkPrefixLength /* netmask */,
address->Ipv6IfIndex /* ll_scope */
#else
32, 0
ipaddr->Address.lpSockaddr->sa_family
== AF_INET?32:128,
#endif
address->Ipv6IfIndex /* ll_scope */
);

if (status != ARES_SUCCESS) {
Expand Down

0 comments on commit 3c720c3

Please sign in to comment.