]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: drop redundant call of socket_ipv6_is_supported()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Nov 2022 03:53:07 +0000 (12:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Nov 2022 12:46:36 +0000 (21:46 +0900)
As link_relevant() is called with AF_INET6, which returns true only when
the link has at least one relevant IPv6 address.

src/resolve/resolved-link.c

index 5b34677cbefea230565c789f24e15c01d8444921..94ad939c5e8aff7cc31a8fbe007244e4d72f00e7 100644 (file)
@@ -152,8 +152,7 @@ void link_allocate_scopes(Link *l) {
 
         if (link_relevant(l, AF_INET6, true) &&
             l->llmnr_support != RESOLVE_SUPPORT_NO &&
-            l->manager->llmnr_support != RESOLVE_SUPPORT_NO &&
-            socket_ipv6_is_supported()) {
+            l->manager->llmnr_support != RESOLVE_SUPPORT_NO) {
                 if (!l->llmnr_ipv6_scope) {
                         r = dns_scope_new(l->manager, &l->llmnr_ipv6_scope, l, DNS_PROTOCOL_LLMNR, AF_INET6);
                         if (r < 0)