diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-13 15:00:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-13 15:00:12 +0200 |
commit | 90ab504273a7f186ebb76e6acfb778b4e0d7c91b (patch) | |
tree | 031340470af5e29bbba58a2ebf9c0a354c3cb479 /src/shared/socket-util.c | |
parent | 92683ad2e28c79891e4123d9a421b018dc58870c (diff) |
resolved: skip IPv6 LLMNR if IPv6 is not available
Diffstat (limited to 'src/shared/socket-util.c')
-rw-r--r-- | src/shared/socket-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |