system: remove duplicate addresses before binding #2375

This commit is contained in:
Franco Fichtner 2018-04-25 11:02:03 +02:00
parent 9374a0862a
commit b2b926d7ad
2 changed files with 6 additions and 0 deletions

View File

@ -200,6 +200,9 @@ function openssh_configure_do($verbose = false, $interface = '')
$listeners[] = $vip['subnet'];
}
}
/* VIPs may have been read twice */
$listeners = array_unique($listeners);
}
foreach ($listeners as $listener) {

View File

@ -72,6 +72,9 @@ function webgui_configure_do($verbose = false, $interface = '')
$listeners[] = $vip['subnet'];
}
}
/* VIPs may have been read twice */
$listeners = array_unique($listeners);
}
chdir('/usr/local/www');