mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
fixed _getMonitoredAS method
This commit is contained in:
@@ -81,6 +81,15 @@ export default class MonitorRPKI extends Monitor {
|
||||
}
|
||||
};
|
||||
|
||||
_getMonitoredAS = (message) => {
|
||||
const monitored = this.monitored;
|
||||
|
||||
for (let m of monitored) {
|
||||
if (message.originAS.includes(m.asn)) {
|
||||
return m;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
monitor = (message) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user