@@ -492,6 +492,10 @@
version 2 -- Change management version of client to 2 (default = 1)
version -- Show the version of OpenVPN and its Management Interface
+Note: Until version 3, no response was generated when client sets its
+version. This was fixed starting version 4: clients should expect
+"SUCCESS: .. " message only when setting the version to >= 4.
+
COMMAND -- auth-retry
---------------------
@@ -1333,6 +1333,15 @@
if (version)
{
man->connection.client_version = atoi(version);
+ /* Prior to version 3, we missed to respond to this command. Acknowledge only if version >= 4 */
+ if (man->connection.client_version >= 4)
+ {
+ msg(M_CLIENT, "SUCCESS: Management client version set to %d", man->connection.client_version);
+ }
+ }
+ else
+ {
+ msg(M_CLIENT, "ERROR: Invalid value specified for management client version");
}
}