Send the whole version in IV_GUI_VER

Current IV_GUI_VER is always 11 which is not very helpful.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
pull/657/head
Lev Stipakov 2023-09-06 16:21:41 +02:00 committed by Lev Stipakov
parent 8b42ea8761
commit a02ccb5bff
2 changed files with 2 additions and 5 deletions

View File

@ -9,9 +9,6 @@
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "OpenVPN GUI" #define PACKAGE_NAME "OpenVPN GUI"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "OpenVPN GUI 11"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "openvpn-gui" #define PACKAGE_TARNAME "openvpn-gui"

View File

@ -2719,11 +2719,11 @@ LaunchOpenVPN(connection_t *c)
/* Construct command line -- put log first */ /* Construct command line -- put log first */
_sntprintf_0(cmdline, _T("openvpn --log%ls \"%ls\" --config \"%ls\" " _sntprintf_0(cmdline, _T("openvpn --log%ls \"%ls\" --config \"%ls\" "
"--setenv IV_GUI_VER \"%hs\" --setenv IV_SSO openurl,webauth,crtext --service %ls 0 --auth-retry interact " "--setenv IV_GUI_VER \"%hs %hs\" --setenv IV_SSO openurl,webauth,crtext --service %ls 0 --auth-retry interact "
"--management %hs %hd stdin --management-query-passwords %ls" "--management %hs %hd stdin --management-query-passwords %ls"
"--management-hold"), "--management-hold"),
(o.log_append ? _T("-append") : _T("")), c->log_path, (o.log_append ? _T("-append") : _T("")), c->log_path,
c->config_file, PACKAGE_STRING, exit_event_name, c->config_file, PACKAGE_NAME, PACKAGE_VERSION_RESOURCE_STR, exit_event_name,
inet_ntoa(c->manage.skaddr.sin_addr), ntohs(c->manage.skaddr.sin_port), inet_ntoa(c->manage.skaddr.sin_addr), ntohs(c->manage.skaddr.sin_port),
(o.proxy_source != config ? _T("--management-query-proxy ") : _T(""))); (o.proxy_source != config ? _T("--management-query-proxy ") : _T("")));