Skip to content

Commit cc36d04

Browse files
author
Kanhaiya Lal Singh
committed
New binary release
1 parent fc35658 commit cc36d04

File tree

1 file changed

+9
-49
lines changed

1 file changed

+9
-49
lines changed

lib/tunnel.js

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ function addArguments_(self, fnCallback) {
542542
case 'port':
543543
case 'dns':
544544
case 'pidfile':
545-
case 'pac':
546545
case 'controller':
547546
if (value) {
548547
binaryArgs.push('--' + key);
@@ -605,47 +604,30 @@ function addArguments_(self, fnCallback) {
605604
}
606605
break;
607606

608-
case 'configurationfile':
609-
case 'conffile':
610-
case 'configfile':
611-
case 'config':
612-
case 'c':
613-
if (value) {
614-
binaryArgs.push('--config');
615-
binaryArgs.push(value);
616-
}
617-
break;
618-
619607
case 'sharedtunnel':
620608
case 'shared-tunnel':
621609
if (value) {
622610
binaryArgs.push('--shared-tunnel');
623611
}
624612
break;
625613

626-
case 'outputconfiguration':
627-
case 'outputconf':
628-
case 'outputconfig':
629-
case 'output-config':
614+
case 'logfile':
630615
if (value) {
631-
binaryArgs.push('--output-config');
616+
binaryArgs.push('--logFile');
632617
binaryArgs.push(value);
633618
}
634619
break;
635-
636-
case 'logfile':
620+
case 'nows':
637621
if (value) {
638-
binaryArgs.push('--logFile');
639-
binaryArgs.push(value);
622+
binaryArgs.push('--nows');
640623
}
641624
break;
642-
643625
case 'verbose':
644-
case 'v':
645-
if (value && !options['legacy']) {
646-
binaryArgs.push('--verbose');
647-
}
648-
break;
626+
case 'v':
627+
if (value) {
628+
binaryArgs.push('-v');
629+
}
630+
break;
649631
case 'mode':
650632
if (value && !options['legacy']) {
651633
binaryArgs.push('--' + key);
@@ -678,7 +660,6 @@ function addArguments_(self, fnCallback) {
678660
case 'm':
679661
if (value && !options['legacy']) {
680662
binaryArgs.push('--mitm');
681-
binaryArgs.push(value);
682663
}
683664
break;
684665

@@ -693,14 +674,12 @@ function addArguments_(self, fnCallback) {
693674
case 'ingressonly':
694675
if (value && !options['legacy']) {
695676
binaryArgs.push('--ingress-only');
696-
binaryArgs.push(value);
697677
}
698678
break;
699679

700680
case 'egressonly':
701681
if (value && !options['legacy']) {
702682
binaryArgs.push('--egress-only');
703-
binaryArgs.push(value);
704683
}
705684
break;
706685

@@ -710,25 +689,6 @@ function addArguments_(self, fnCallback) {
710689
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
711690
}
712691
break;
713-
714-
case 'emulatechrome':
715-
if (value && !options['legacy']) {
716-
binaryArgs.push('--emulateChrome');
717-
binaryArgs.push(value);
718-
}
719-
break;
720-
case 'now':
721-
if (value && !options['legacy']) {
722-
binaryArgs.push('--now');
723-
binaryArgs.push(value);
724-
}
725-
break;
726-
case 'version':
727-
if (value && !options['legacy']) {
728-
binaryArgs.push('--version');
729-
binaryArgs.push(value);
730-
}
731-
break;
732692
}
733693
}
734694
if (binaryArgs.indexOf('--controller') === -1) {

0 commit comments

Comments
 (0)