Skip to content

Commit

Permalink
skip link-local ipv6 address
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jan 6, 2024
1 parent 0205c84 commit 780bc8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/backend/pcmanager/discovery/discovery_libmicrodns.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ static void discovery_callback(discovery_task_t *task, int status, const struct
}
case RR_AAAA: {
if (addr->sa_family != AF_UNSPEC) { continue; }
// Ignore any link-local addresses
if (IN6_IS_ADDR_LINKLOCAL(&cur->data.AAAA.addr)) { continue; }
sockaddr_set_ip(addr, AF_INET6, &cur->data.AAAA.addr);
break;
}
Expand Down

0 comments on commit 780bc8e

Please sign in to comment.