From 96c9f917c0c41d2d12f992c37f6bb22f5d7df9c3 Mon Sep 17 00:00:00 2001 From: Adam Hamsik Date: Thu, 28 Dec 2023 19:21:50 +0100 Subject: [PATCH] Print version string if not arguments are given. --- src/common.c | 1 + src/main.c | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/common.c b/src/common.c index 1ca612a..03521da 100644 --- a/src/common.c +++ b/src/common.c @@ -1,4 +1,5 @@ #include "common.h" + #include #include #include diff --git a/src/main.c b/src/main.c index b54a811..7694e1b 100644 --- a/src/main.c +++ b/src/main.c @@ -26,10 +26,13 @@ #include "common.h" static int usage(char **argv) { - printf("\nUsage:\t%s -q -f config_file program_name [arguments]\n" - "\t-q makes proxychains quiet - this overrides the config setting\n" - "\t-f allows to manually specify a configfile to use\n" - "\tfor example : proxychains telnet somehost.com\n" "More help in README file\n\n", argv[0]); + printf( "\nProxychains4: %d.%d.%d\n" + "Usage:\t%s -q -f config_file program_name [arguments]\n" + "\t-q makes proxychains quiet - this overrides the config setting\n" + "\t-f allows to manually specify a configfile to use\n" + "\n\tfor example : proxychains telnet somehost.com\n" + "\n\tMore help in README file\n\n", PROXYCHAINS_VERSION_MAJOR, + PROXYCHAINS_VERSION_MINOR, PROXYCHAINS_VERSION_BUGFIX, argv[0]); return EXIT_FAILURE; }