server: proxy: print version and buildconfig on startup
authorKobi Mizrachi <kmizrachi18@gmail.com>
Sun, 10 May 2020 05:33:07 +0000 (08:33 +0300)
committerakallabeth <akallabeth@posteo.net>
Mon, 18 May 2020 14:37:28 +0000 (16:37 +0200)
(cherry picked from commit f0fe17d94364087136354284543573bf54da162f)

server/proxy/freerdp_proxy.c

index 3b348d0..2c00230 100644 (file)
@@ -24,6 +24,7 @@
 #include "pf_log.h"
 #include "pf_modules.h"
 
+#include <freerdp/version.h>
 #include <freerdp/build-config.h>
 #include <winpr/collections.h>
 #include <stdlib.h>
@@ -85,6 +86,11 @@ int main(int argc, char* argv[])
        char* config_path = "config.ini";
        int status = -1;
 
+       WLog_INFO(TAG, "freerdp-proxy version info:");
+       WLog_INFO(TAG, "\tFreeRDP version: %s", FREERDP_VERSION_FULL);
+       WLog_INFO(TAG, "\tGit commit: %s", GIT_REVISION);
+       WLog_DBG(TAG, "\tBuild config: %s", freerdp_get_build_config());
+
        if (argc >= 2)
                config_path = argv[1];