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

proxy support (#234)

Introduced proxy support

Co-authored-by: Florian Domain <f.domain@criteo.com>
This commit is contained in:
Massimo Candela
2020-05-26 14:50:16 +02:00
committed by GitHub
parent 67fc2490fd
commit 91f0d03f2a
31 changed files with 381 additions and 42 deletions

View File

@@ -71,6 +71,10 @@ const params = yargs
.nargs('m', 0)
.describe('m', 'Automatically generate list of monitored ASes (options.monitorASns) from prefix origins.')
.alias('x', 'proxy')
.nargs('x', 1)
.describe('x', 'HTTP/HTTPS proxy to use')
.demandOption(['o']);
})
.example('$0 generate -a 2914 -o prefixes.yml', 'Generate prefixes for AS2914')
@@ -114,7 +118,8 @@ switch(params._[0]) {
(params.e || "").split(","),
params.i || false,
prefixes,
monitoredASes
monitoredASes,
params.x || null
);
break;