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
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m2s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user