Only warn if there is ipv6 disabled (#7757)

* Only warn if there ipv6 is disabled

* Change message & if condition
This commit is contained in:
Seti
2017-11-18 08:36:06 +01:00
committed by Tony Murray
parent 51a641c93b
commit 00a73a2432

View File

@@ -69,6 +69,11 @@ class Programs implements ValidationGroup
return;
}
if (str_contains($output, '::1 is unreachable')) {
$validator->warn("IPv6 is disabled on your server, you will not be able to add IPv6 devices.");
return;
}
$validator->fail(
"$bin could not be executed. $bin must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.\n ($output)"
);