Skip to content

Commit af8ce64

Browse files
Merge pull request #28 from Shahnawaz-Sk/basic-auth-flag
Basic auth flag
2 parents d97e193 + 8047e4d commit af8ce64

File tree

3 files changed

+531
-2823
lines changed

3 files changed

+531
-2823
lines changed

lib/tunnel.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,15 @@ function addArguments_(self, fnCallback) {
690690
binaryArgs.push(value);
691691
}
692692
break;
693+
694+
case 'basic-auth':
695+
case 'b':
696+
if (value && !options['legacy']) {
697+
binaryArgs.push('-b');
698+
binaryArgs.push(value);
699+
}
700+
break;
701+
693702
case 'mitm':
694703
case 'm':
695704
if (value && !options['legacy']) {

0 commit comments

Comments
 (0)