diff --git a/include/common.h b/include/common.h index e691b0b..a23ae2b 100644 --- a/include/common.h +++ b/include/common.h @@ -1,7 +1,7 @@ #ifndef _COMMON_H_ #define _COMMON_H_ -#define VERSION "0.9.5" +#define VERSION "1.0.0-beta" #define RANDOM_PORT_START 41952 #define RANDOM_PORT_END 65535 diff --git a/src/common.c b/src/common.c index 35640a4..41bcb09 100644 --- a/src/common.c +++ b/src/common.c @@ -64,7 +64,7 @@ char* read_file(char *file_name) { // read file content void init(int argc, char **argv, char *help_msg) { if (argc <= 1) { // with only one argument - printf("%s", help_msg); + printf(help_msg, VERSION); exit(0); } for (int i = 0; i < argc; ++i) { @@ -72,7 +72,7 @@ void init(int argc, char **argv, char *help_msg) { LOG_LEVEL = LOG_DEBUG; } if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) { // include `-h` or `--help` - printf("%s", help_msg); + printf(help_msg, VERSION); exit(0); } } diff --git a/src/local.c b/src/local.c index 22ae724..b8f5db1 100644 --- a/src/local.c +++ b/src/local.c @@ -4,7 +4,7 @@ #include "process.h" char *help_msg = "\n\ -ss-bootstrap-local\n\ +ss-bootstrap-local (%s)\n\ \n\ A simple program to make the original shadowsocks support SIP003 plugins.\n\ \n\ diff --git a/src/server.c b/src/server.c index cd0289e..1a79a97 100644 --- a/src/server.c +++ b/src/server.c @@ -4,7 +4,7 @@ #include "process.h" char *help_msg = "\n\ -ss-bootstrap-server\n\ +ss-bootstrap-server (%s)\n\ \n\ A simple program to make the original shadowsocks support SIP003 plugins.\n\ \n\