1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

prevent skipping collector peer information from top used AS_paths in the path channel

This commit is contained in:
Massimo Candela
2021-06-19 14:46:42 +02:00
parent 606755c7b2
commit b73c546e29

View File

@@ -90,7 +90,7 @@ export default class Report {
if (this.params.showPaths > 0) {
content.data
.filter(i => !!i.matchedMessage && !!i.matchedMessage.path)
.map(i => JSON.stringify(i.matchedMessage.path.getValues().slice(1)))
.map(i => JSON.stringify(i.matchedMessage.path.getValues().slice(channel === "path" ? 0 : 1)))
.forEach(path => {
if (!pathsCount[path]) {
pathsCount[path] = 0;