Fix smokeping generator for TCP transport (#16421)

This commit is contained in:
Daniel Preussker
2024-09-24 08:12:23 +02:00
committed by GitHub
parent db65bb818a
commit c250ffa8e9

View File

@ -374,7 +374,7 @@ class SmokepingGenerateCommand extends LnmsCommand
*/
private function balanceProbes($transport, $probeCount)
{
if ($transport === 'udp') {
if ($transport === 'udp' || $transport === 'tcp') {
if ($probeCount === $this->ip4count) {
$this->ip4count = 0;
}