From 90ab504273a7f186ebb76e6acfb778b4e0d7c91b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 13 Aug 2014 15:00:12 +0200 Subject: resolved: skip IPv6 LLMNR if IPv6 is not available --- src/shared/socket-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared') diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 1a04f323ab..38729a25b8 100644 --- a/src/shared/socket-util.c +++ b/src/shared/socket-util.c @@ -426,11 +426,11 @@ bool socket_ipv6_is_supported(void) { _cleanup_free_ char *l = NULL; if (access("/sys/module/ipv6", F_OK) != 0) - return 0; + return false; /* If we can't check "disable" parameter, assume enabled */ if (read_one_line_file("/sys/module/ipv6/parameters/disable", &l) < 0) - return 1; + return true; /* If module was loaded with disable=1 no IPv6 available */ return l[0] == '0'; -- cgit v1.2.3-54-g00ecf