Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/server/meshtasticManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3817,12 +3817,16 @@ class MeshtasticManager {
}
}
// Preserve the 'from' and 'to' node order for virtual node traceroute requests.
// This ensures subsequent responses correctly correlate with this request
// This ensures subsequent responses correctly correlate with this request
// to update route and signal characteristics in the database.
// Skip if from our own node — sendTraceroute() already recorded the request.
else if (normalizedPortNum === PortNum.TRACEROUTE_APP) {
const fromNum = meshPacket.from ? Number(meshPacket.from) : 0;
const toNum = meshPacket.to ? Number(meshPacket.to) : 0;
await databaseService.recordTracerouteRequestAsync(fromNum, toNum);
const localNodeNum = this.localNodeInfo?.nodeNum;
if (fromNum !== localNodeNum) {
await databaseService.recordTracerouteRequestAsync(fromNum, toNum);
}
}
}
}
Expand Down
Loading