Skip to content

Commit 0a6099a

Browse files
committed
Use dash "-" in command line option instead of underscore "_"
1 parent 2a6b834 commit 0a6099a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

evhtp_proxy.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# define ENABLE_HTTPS_PROXY
3434
#endif
3535

36-
#define PROGRAM_VERSION "0.5"
36+
#define PROGRAM_VERSION "0.6"
3737
#define DEFAULT_LISTEN_PORT 8081
3838
#define DEFAULT_BIND_ADDRESS "0.0.0.0"
3939
#define DEFAULT_SOCKS5_PORT 1080
@@ -481,8 +481,8 @@ void usage(const char *program)
481481
" --pid-file <path> pid file\n"
482482
#endif
483483
#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"
486486
#endif
487487
#ifdef TCP_NODELAY
488488
" --tcp-nodelay enable TCP NODELAY\n"
@@ -541,8 +541,11 @@ main(int argc, char ** argv) {
541541
{"pid-file", required_argument, NULL, OPTION_PID_FILE},
542542
#endif
543543
#ifdef ENABLE_HTTPS_PROXY
544+
// for compatible only
544545
{"ssl_certificate", required_argument, NULL, OPTION_SSL_CERTIFICATE},
545546
{"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},
546549
#endif
547550
#ifdef TCP_NODELAY
548551
{"tcp-nodelay", no_argument, NULL, OPTION_TCP_NODELAY},

0 commit comments

Comments
 (0)