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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user