|
33 | 33 | # define ENABLE_HTTPS_PROXY |
34 | 34 | #endif |
35 | 35 |
|
36 | | -#define PROGRAM_VERSION "0.5" |
| 36 | +#define PROGRAM_VERSION "0.6" |
37 | 37 | #define DEFAULT_LISTEN_PORT 8081 |
38 | 38 | #define DEFAULT_BIND_ADDRESS "0.0.0.0" |
39 | 39 | #define DEFAULT_SOCKS5_PORT 1080 |
@@ -481,8 +481,8 @@ void usage(const char *program) |
481 | 481 | " --pid-file <path> pid file\n" |
482 | 482 | #endif |
483 | 483 | #ifdef ENABLE_HTTPS_PROXY |
484 | | - " --ssl_certificate <fullchain.pem> set ssl certificate\n" |
485 | | - " --ssl_certificate_key <privkey.pem> set ssl private key\n" |
| 484 | + " --ssl-certificate <fullchain.pem> set ssl certificate\n" |
| 485 | + " --ssl-certificate-key <privkey.pem> set ssl private key\n" |
486 | 486 | #endif |
487 | 487 | #ifdef TCP_NODELAY |
488 | 488 | " --tcp-nodelay enable TCP NODELAY\n" |
@@ -541,8 +541,11 @@ main(int argc, char ** argv) { |
541 | 541 | {"pid-file", required_argument, NULL, OPTION_PID_FILE}, |
542 | 542 | #endif |
543 | 543 | #ifdef ENABLE_HTTPS_PROXY |
| 544 | + // for compatible only |
544 | 545 | {"ssl_certificate", required_argument, NULL, OPTION_SSL_CERTIFICATE}, |
545 | 546 | {"ssl_certificate_key", required_argument, NULL, OPTION_SSL_CERTIFICATE_KEY}, |
| 547 | + {"ssl-certificate", required_argument, NULL, OPTION_SSL_CERTIFICATE}, |
| 548 | + {"ssl-certificate-key", required_argument, NULL, OPTION_SSL_CERTIFICATE_KEY}, |
546 | 549 | #endif |
547 | 550 | #ifdef TCP_NODELAY |
548 | 551 | {"tcp-nodelay", no_argument, NULL, OPTION_TCP_NODELAY}, |
|
0 commit comments