Skip to content

Commit

Permalink
Send the whole version in IV_GUI_VER
Browse files Browse the repository at this point in the history
Current IV_GUI_VER is always 11 which is not very helpful.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
  • Loading branch information
lstipakov committed Sep 7, 2023
1 parent 8b42ea8 commit a02ccb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions config-msvc.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
/* Define to the full name of this package. */
#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 PACKAGE_TARNAME "openvpn-gui"

Expand Down
4 changes: 2 additions & 2 deletions openvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2719,11 +2719,11 @@ LaunchOpenVPN(connection_t *c)

/* Construct command line -- put log first */
_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-hold"),
(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),
(o.proxy_source != config ? _T("--management-query-proxy ") : _T("")));

Expand Down

0 comments on commit a02ccb5

Please sign in to comment.