use break as nothing to continue on any piece fail

This commit is contained in:
yggverse 2026-03-05 01:11:24 +02:00
parent 795f304789
commit 9f4e924592

View file

@ -156,7 +156,7 @@ class Master
if (false === $p = unpack('nport', $p))
{
$this->_errors[] = _("Invalid `port` value in packet at $i for $master");
continue;
break;
}
// Validate result
@ -164,7 +164,7 @@ class Master
: FILTER_FLAG_IPV4) || empty($p['port']))
{
$this->_errors[] = _("Invalid socket address in packet at $i for $master");
continue;
break;
}
$servers["{$host}{$p['port']}"] = // keep unique