mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Only warn if there is ipv6 disabled (#7757)
* Only warn if there ipv6 is disabled * Change message & if condition
This commit is contained in:
@@ -69,6 +69,11 @@ class Programs implements ValidationGroup
|
|||||||
return;
|
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(
|
$validator->fail(
|
||||||
"$bin could not be executed. $bin must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.\n ($output)"
|
"$bin could not be executed. $bin must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.\n ($output)"
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user