Skip to content

Commit 919389d

Browse files
Merge pull request #44 from Shahnawaz-Sk/master_v2
adding missing tunnel modifiers
2 parents 6b4058d + c376fbc commit 919389d

File tree

4 files changed

+827
-1804
lines changed

4 files changed

+827
-1804
lines changed

lib/cfg/node-tunnel-config-v3-latest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
7878
"logEnable": true,
79-
"latest": "4.0.1",
79+
"latest": "4.0.2",
8080
"supportedVersions":
8181
[
8282
"1.0.0",
@@ -114,6 +114,7 @@
114114
"3.0.13",
115115
"3.0.14",
116116
"4.0.0",
117-
"4.0.1"
117+
"4.0.1",
118+
"4.0.2"
118119
]
119120
}

lib/tunnel.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,49 @@ function addArguments_(self, fnCallback) {
731731
binaryArgs.push('--sshConnType');
732732
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
733733
}
734+
break;
735+
736+
case 'config':
737+
if (value) {
738+
binaryArgs.push('--config');
739+
binaryArgs.push(value);
740+
}
741+
break;
742+
743+
case 'clientcert':
744+
if (value) {
745+
binaryArgs.push('--clientCert');
746+
binaryArgs.push(value);
747+
}
748+
break;
749+
750+
case 'clientkey':
751+
if (value) {
752+
binaryArgs.push('--clientKey');
753+
binaryArgs.push(value);
754+
}
755+
break;
756+
757+
758+
case 'mtlshosts':
759+
if (value) {
760+
binaryArgs.push('--mTLSHosts');
761+
binaryArgs.push(value);
762+
}
763+
break;
764+
765+
case 'pacfile':
766+
if (value) {
767+
binaryArgs.push('--pacfile');
768+
binaryArgs.push(value);
769+
}
770+
break;
771+
772+
case 'allowhosts':
773+
if (value) {
774+
binaryArgs.push('--allowHosts');
775+
binaryArgs.push(value);
776+
}
734777
break;
735778
}
736779
}

0 commit comments

Comments
 (0)