feat(MikrotikTools): limit packet count per hop in traceroute functionality for improved control
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 1m31s

This commit is contained in:
2026-02-12 15:56:00 +07:00
parent ba006edec0
commit 3b60a5885b
+5
View File
@@ -700,6 +700,11 @@ async function tracerouteViaGateway(req, res) {
body.interface = ifaceName;
}
// Ограничиваем количество пакетов на каждый хоп (как в ручной команде count=1)
let countNum = Number(req.body?.count ?? 1);
if (!Number.isFinite(countNum) || countNum <= 0) countNum = 1;
body.count = countNum;
const hopsNum = Number(maxHops);
if (Number.isFinite(hopsNum) && hopsNum > 0) {
body['max-hops'] = hopsNum;