feat(MikrotikTools): add configurable DNS usage option in traceroute for flexible user preferences
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 2m23s

This commit is contained in:
2026-02-12 16:40:13 +07:00
parent 56b264a724
commit 337a4ce944
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -558,6 +558,7 @@ async function tracerouteViaGateway(req, res) {
target,
gatewayIp,
maxHops = 30,
useDns = true,
} = req.body || {};
if (!serverId) {
@@ -705,8 +706,8 @@ async function tracerouteViaGateway(req, res) {
if (!Number.isFinite(countNum) || countNum <= 0) countNum = 1;
body.count = countNum;
// Включаем reverse DNS (как use-dns=yes), чтобы видеть имена
body['use-dns'] = 'yes';
// Включаем/отключаем reverse DNS (как use-dns=yes/no)
body['use-dns'] = useDns ? 'yes' : 'no';
const hopsNum = Number(maxHops);
if (Number.isFinite(hopsNum) && hopsNum > 0) {
+1
View File
@@ -89,6 +89,7 @@ function MikrotikTools() {
const body = {
serverId,
target: String(target).trim(),
useDns,
};
// gatewayRef может быть как ID gateway, так и IP/строка —
// для простоты, если в meta есть ip — используем его как gatewayIp.