Skip tentative IPv6 addresses for binding of webgui

IPv6 addresses might be tentative. lighttpd will fail when trying to bind to a tentative address. This commit skips tentative IPv6 addresses for binding.
This commit is contained in:
tionu 2024-08-06 11:17:42 +02:00 committed by Franco Fichtner
parent c8a44c0607
commit bd3faedadb

View File

@ -83,7 +83,7 @@ function webgui_configure_do($verbose = false, $interface = '')
$listeners = count($interfaces) ? [] : ['0.0.0.0', '::'];
foreach (interfaces_addresses($interfaces) as $tmpaddr => $info) {
if (!$info['bind']) {
if (!$info['bind'] || ($info['family'] == 'inet6' && $info['tentative'])) {
continue;
}