Skip to content

Commit 1c5a1d6

Browse files
committed
Startup message
Signed-off-by: Alexey Cluster <cluster@cluster.wtf>
1 parent 0b93b34 commit 1c5a1d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

wg-obfuscator.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,14 @@ int main(int argc, char *argv[]) {
632632
struct pollfd pollfds[MAX_CLIENTS + 1];
633633
#endif
634634

635+
if (verbose >= LL_WARN) {
636+
#ifdef COMMIT
637+
log(LL_INFO, "Starting WireGuard Obfuscator v" WG_OBFUSCATOR_VERSION);
638+
#else
639+
log(LL_INFO, "Starting WireGuard Obfuscator (commit " COMMIT " @ " WG_OBFUSCATOR_GIT_REPO ")");
640+
#endif
641+
}
642+
635643
/* Parse command line arguments */
636644
if (argc == 1) {
637645
fprintf(stderr, "No arguments provided, use \"%s --help\" command for usage information", argv[0]);

0 commit comments

Comments
 (0)