Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit de30bd6

Browse files
committed
fix upstream security vulnerability
1 parent 66fa08f commit de30bd6

File tree

3 files changed

+64
-47
lines changed

3 files changed

+64
-47
lines changed

cbt-enterprise-connection-manager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ function cbtConnect() {
7171

7272
if(proxy){
7373
console.log('going to setup proxy agent')
74+
if (proxy.indexOf('http') !== 0){
75+
proxy = 'http://' + proxy
76+
}
7477
let proxyURL = new url.URL(proxy)
7578
let proxyAgentOpts ={
7679
host:proxyURL.hostname,
7780
port: proxyURL.port,
7881
auth: proxyURL.username ? `${proxyURL.username}:${proxyURL.password}` : ``,
7982
secureProxy:true
8083
}
81-
console.log('proxy agent opts: ' + JSON.stringify(proxyAgentOpts))
8284
let proxyAgent = new ProxyAgent(proxyAgentOpts)
8385
socket = new WebSocket(getApiUrl(argv.env), {agent: proxyAgent});
8486
} else {

package-lock.json

Lines changed: 59 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"license": "MIT",
1919
"dependencies": {
20-
"cbt_tunnels": "0.9.12",
21-
"https-proxy-agent": "^2.2.2",
20+
"cbt_tunnels": "^1.2.2",
21+
"https-proxy-agent": "^2.2.4",
2222
"lodash": "^4.17.15",
2323
"request": "^2.88.0",
2424
"socket.io-client": "2.2.0",

0 commit comments

Comments
 (0)