mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
system: weirdness in port parsing that we don't use; closes #5182
This commit is contained in:
parent
53cd1c7183
commit
6651a03a18
@ -219,11 +219,16 @@ function openssh_configure_do($verbose = false, $interface = '')
|
||||
continue;
|
||||
}
|
||||
|
||||
if (count($listeners) < 16) {
|
||||
$listeners[] = $tmpaddr;
|
||||
} else {
|
||||
if (count($listeners) >= 16) {
|
||||
log_error("The SSH listening address $tmpaddr cannot be added due to MAX_LISTEN_SOCKS limit reached.");
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($info['family'] == 'inet6') {
|
||||
$tmpaddr = "[$tmpaddr]";
|
||||
}
|
||||
|
||||
$listeners[] = $tmpaddr;
|
||||
}
|
||||
|
||||
foreach ($listeners as $listener) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user