@@ -38,6 +38,7 @@ static const char *path;
3838static const char * baddr ;
3939static const char * taddr ;
4040static const char * tport ;
41+ static const char * ttcca ;
4142static const char * iface ;
4243
4344const char *
@@ -68,6 +69,7 @@ hev_conf_help (void)
6869 " - <port>-<port>: sequential allocation within the range\n"
6970 "\n"
7071 "Forward options:\n"
72+ " -C <congestion> TCP congestion control algorithm\n"
7173 " -T <timeout> port forwarding timeout in seconds\n"
7274 " -t <address> domain name or address of forward target\n"
7375 " -p <port> port number of forward target (0: use public port)\n" ;
@@ -82,7 +84,7 @@ hev_conf_init (int argc, char *argv[])
8284 int opt ;
8385 char c ;
8486
85- while ((opt = getopt (argc , argv , "46udk:c:s:h:e:f:b:T:t:p:i:" )) != -1 ) {
87+ while ((opt = getopt (argc , argv , "46udk:c:s:h:e:f:b:C: T:t:p:i:" )) != -1 ) {
8688 switch (opt ) {
8789 case '4' :
8890 type = AF_INET ;
@@ -117,6 +119,9 @@ hev_conf_init (int argc, char *argv[])
117119 case 'b' :
118120 sscanf (optarg , "%u%c%u" , & bport [0 ], & c , & bport [1 ]);
119121 break ;
122+ case 'C' :
123+ ttcca = optarg ;
124+ break ;
120125 case 'T' :
121126 tmsec = strtoul (optarg , NULL , 10 ) * 1000 ;
122127 break ;
@@ -279,6 +284,12 @@ hev_conf_tmsec (void)
279284 return tmsec ;
280285}
281286
287+ const char *
288+ hev_conf_ttcca (void )
289+ {
290+ return ttcca ;
291+ }
292+
282293const char *
283294hev_conf_mport (int port )
284295{
0 commit comments