summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_dns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c
index 5fbdc0a70f..f146f29bcd 100644
--- a/source3/utils/net_dns.c
+++ b/source3/utils/net_dns.c
@@ -170,6 +170,11 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
continue;
}
+ /* Don't register link-local addresses */
+ if (is_linklocal_addr(nic_sa_storage)) {
+ continue;
+ }
+
memcpy(&list[count++], nic_sa_storage, sizeof(struct sockaddr_storage));
}
*pp_ss = list;