mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
removed useless console.log from proxy feature and removed optional default false parameter from config example
This commit is contained in:
@@ -4,7 +4,6 @@ connectors:
|
||||
params:
|
||||
carefulSubscription: true
|
||||
url: wss://ris-live.ripe.net/v1/ws/
|
||||
noProxy: false
|
||||
perMessageDeflate: true
|
||||
subscription:
|
||||
moreSpecific: true
|
||||
@@ -103,7 +102,6 @@ reports:
|
||||
# - misconfiguration
|
||||
# - rpki
|
||||
# params:
|
||||
# noProxy: false
|
||||
# showPaths: 0 # Amount of AS_PATHs to report in the alert
|
||||
# colors:
|
||||
# hijack: '#d60b1c'
|
||||
@@ -156,7 +154,6 @@ reports:
|
||||
# - misconfiguration
|
||||
# - rpki
|
||||
# params:
|
||||
# noProxy: false
|
||||
# severity:
|
||||
# hijack: critical
|
||||
# newprefix: informational
|
||||
@@ -179,7 +176,6 @@ reports:
|
||||
# - misconfiguration
|
||||
# - rpki
|
||||
# params:
|
||||
# noProxy: false
|
||||
# hooks:
|
||||
# default: _YOUR_WEBEX_WEBHOOK_URL_
|
||||
|
||||
@@ -252,7 +248,10 @@ monitoredPrefixesFiles:
|
||||
|
||||
############################
|
||||
# HTTP proxy setting:
|
||||
# Allow to run BGPalerter behind an HTTP(S) proxy
|
||||
# Allow to run BGPalerter behind an HTTP/HTTPS proxy.
|
||||
# You can also specify which module can bypass the proxy.
|
||||
# More information here: https://github.com/nttgin/BGPalerter/blob/master/docs/http-proxy.md
|
||||
|
||||
# httpProxy: http://username:password@127.0.0.1:9000
|
||||
|
||||
|
||||
|
@@ -92,7 +92,6 @@ export default class ConnectorRIS extends Connector{
|
||||
perMessageDeflate: this.params.perMessageDeflate
|
||||
};
|
||||
if (!this.params.noProxy && this.agent) {
|
||||
console.log("Using proxy");
|
||||
wsOptions.agent = this.agent;
|
||||
}
|
||||
this.ws = new WebSocket(this.url, wsOptions);
|
||||
|
@@ -38,7 +38,10 @@ export default class Uptime {
|
||||
constructor(connectors, params){
|
||||
this.connectors = connectors;
|
||||
this.params = params;
|
||||
axios.defaults.httpsAgent = env.agent;
|
||||
|
||||
if (!this.params.noProxy && env.agent) {
|
||||
axios.defaults.httpsAgent = env.agent;
|
||||
}
|
||||
this.axios = axios;
|
||||
};
|
||||
|
||||
|
@@ -6,8 +6,6 @@ connectors:
|
||||
params:
|
||||
testType: withdrawal
|
||||
|
||||
#httpProxy: http://104.41.6.112:80
|
||||
|
||||
monitors:
|
||||
- file: monitorHijack
|
||||
channel: hijack
|
||||
|
Reference in New Issue
Block a user