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:
|
params:
|
||||||
carefulSubscription: true
|
carefulSubscription: true
|
||||||
url: wss://ris-live.ripe.net/v1/ws/
|
url: wss://ris-live.ripe.net/v1/ws/
|
||||||
noProxy: false
|
|
||||||
perMessageDeflate: true
|
perMessageDeflate: true
|
||||||
subscription:
|
subscription:
|
||||||
moreSpecific: true
|
moreSpecific: true
|
||||||
@@ -103,7 +102,6 @@ reports:
|
|||||||
# - misconfiguration
|
# - misconfiguration
|
||||||
# - rpki
|
# - rpki
|
||||||
# params:
|
# params:
|
||||||
# noProxy: false
|
|
||||||
# showPaths: 0 # Amount of AS_PATHs to report in the alert
|
# showPaths: 0 # Amount of AS_PATHs to report in the alert
|
||||||
# colors:
|
# colors:
|
||||||
# hijack: '#d60b1c'
|
# hijack: '#d60b1c'
|
||||||
@@ -156,7 +154,6 @@ reports:
|
|||||||
# - misconfiguration
|
# - misconfiguration
|
||||||
# - rpki
|
# - rpki
|
||||||
# params:
|
# params:
|
||||||
# noProxy: false
|
|
||||||
# severity:
|
# severity:
|
||||||
# hijack: critical
|
# hijack: critical
|
||||||
# newprefix: informational
|
# newprefix: informational
|
||||||
@@ -179,7 +176,6 @@ reports:
|
|||||||
# - misconfiguration
|
# - misconfiguration
|
||||||
# - rpki
|
# - rpki
|
||||||
# params:
|
# params:
|
||||||
# noProxy: false
|
|
||||||
# hooks:
|
# hooks:
|
||||||
# default: _YOUR_WEBEX_WEBHOOK_URL_
|
# default: _YOUR_WEBEX_WEBHOOK_URL_
|
||||||
|
|
||||||
@@ -252,7 +248,10 @@ monitoredPrefixesFiles:
|
|||||||
|
|
||||||
############################
|
############################
|
||||||
# HTTP proxy setting:
|
# 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
|
# httpProxy: http://username:password@127.0.0.1:9000
|
||||||
|
|
||||||
|
|
||||||
|
@@ -92,7 +92,6 @@ export default class ConnectorRIS extends Connector{
|
|||||||
perMessageDeflate: this.params.perMessageDeflate
|
perMessageDeflate: this.params.perMessageDeflate
|
||||||
};
|
};
|
||||||
if (!this.params.noProxy && this.agent) {
|
if (!this.params.noProxy && this.agent) {
|
||||||
console.log("Using proxy");
|
|
||||||
wsOptions.agent = this.agent;
|
wsOptions.agent = this.agent;
|
||||||
}
|
}
|
||||||
this.ws = new WebSocket(this.url, wsOptions);
|
this.ws = new WebSocket(this.url, wsOptions);
|
||||||
|
@@ -38,7 +38,10 @@ export default class Uptime {
|
|||||||
constructor(connectors, params){
|
constructor(connectors, params){
|
||||||
this.connectors = connectors;
|
this.connectors = connectors;
|
||||||
this.params = params;
|
this.params = params;
|
||||||
axios.defaults.httpsAgent = env.agent;
|
|
||||||
|
if (!this.params.noProxy && env.agent) {
|
||||||
|
axios.defaults.httpsAgent = env.agent;
|
||||||
|
}
|
||||||
this.axios = axios;
|
this.axios = axios;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -6,8 +6,6 @@ connectors:
|
|||||||
params:
|
params:
|
||||||
testType: withdrawal
|
testType: withdrawal
|
||||||
|
|
||||||
#httpProxy: http://104.41.6.112:80
|
|
||||||
|
|
||||||
monitors:
|
monitors:
|
||||||
- file: monitorHijack
|
- file: monitorHijack
|
||||||
channel: hijack
|
channel: hijack
|
||||||
|
Reference in New Issue
Block a user