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

fixed option -s type error

This commit is contained in:
Massimo Candela
2020-02-27 16:56:53 -08:00
parent 3c0a871b17
commit 4237e867e0

View File

@@ -107,7 +107,7 @@ switch(params._[0]) {
if (params.s && params.m) {
throw new Error("You can specify -s or -m, not both");
} else if (params.s) {
monitoredASes = (params.s || "").split(",");
monitoredASes = (params.s) ? params.s.toString().split(",") : null;
} else if (params.m) {
monitoredASes = true;
}