feat(NetworkMapDashboard): update ping requests to include gateway IP for accurate tunnel interface identification
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m2s

This commit is contained in:
2026-02-17 16:59:58 +07:00
parent 7be656c3f2
commit 48ee2a962e
+5
View File
@@ -110,7 +110,10 @@ export default function NetworkMapDashboard() {
try {
const { data } = await api.post('/mikrotik/ping', {
serverId: c.fromKey,
// ВАЖНО: передаём внутренний IP и как target, и как gatewayIp,
// чтобы backend мог по gatewayIp найти нужный tunnel interface.
target: c.internalFromTo,
gatewayIp: c.internalFromTo,
count: 3,
});
const ms = typeof data?.avgMs === 'number' ? Math.round(data.avgMs) : null;
@@ -127,7 +130,9 @@ export default function NetworkMapDashboard() {
try {
const { data } = await api.post('/mikrotik/ping', {
serverId: c.toKey,
// Аналогично для обратного направления
target: c.internalToFrom,
gatewayIp: c.internalToFrom,
count: 3,
});
const ms = typeof data?.avgMs === 'number' ? Math.round(data.avgMs) : null;