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:
2
index.js
2
index.js
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user