Skip to content

Commit

Permalink
Merge pull request #44 from Shahnawaz-Sk/master_v2
Browse files Browse the repository at this point in the history
adding missing tunnel modifiers
  • Loading branch information
Shivanshu-lambdatest authored Jul 24, 2023
2 parents 6b4058d + c376fbc commit 919389d
Show file tree
Hide file tree
Showing 4 changed files with 827 additions and 1,804 deletions.
5 changes: 3 additions & 2 deletions lib/cfg/node-tunnel-config-v3-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
"logEnable": true,
"latest": "4.0.1",
"latest": "4.0.2",
"supportedVersions":
[
"1.0.0",
Expand Down Expand Up @@ -114,6 +114,7 @@
"3.0.13",
"3.0.14",
"4.0.0",
"4.0.1"
"4.0.1",
"4.0.2"
]
}
43 changes: 43 additions & 0 deletions lib/tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,49 @@ function addArguments_(self, fnCallback) {
binaryArgs.push('--sshConnType');
binaryArgs.push(value); // will work only if mode === "ssh", allowed values (over_22, over_443, over_ws), can give error if any other value specified
}
break;

case 'config':
if (value) {
binaryArgs.push('--config');
binaryArgs.push(value);
}
break;

case 'clientcert':
if (value) {
binaryArgs.push('--clientCert');
binaryArgs.push(value);
}
break;

case 'clientkey':
if (value) {
binaryArgs.push('--clientKey');
binaryArgs.push(value);
}
break;


case 'mtlshosts':
if (value) {
binaryArgs.push('--mTLSHosts');
binaryArgs.push(value);
}
break;

case 'pacfile':
if (value) {
binaryArgs.push('--pacfile');
binaryArgs.push(value);
}
break;

case 'allowhosts':
if (value) {
binaryArgs.push('--allowHosts');
binaryArgs.push(value);
}
break;
}
}
Expand Down
Loading

0 comments on commit 919389d

Please sign in to comment.