0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00
openvpn3/openvpn/options
Lev Stipakov adacc16cd4 push update: base implementation
This adds support for parsing PUSH_UPDATE
control command, which enables to update
options "on the fly", without reconnect.

The options presented in the PUSH_UPDATE list
overwrite current options with the name. To unset
an option, it has to be prefixed with the "-".

For example:

  PUSH_UPDATE,route 10.10.10.0 255.255.255.0,-dns

Replaces all existing routes with this new one
and removes all "dns" options.

If the client doesn't support updating certain option,
it reconnects. Except when option is prefixed with "?" -
in this case option is considered "optional".

For example, this message

  PUSH_UPDATE,?unsupported_option_a

does nothing, but this one:

  PUSH_UPDATE,dns 0,block-ipv6,unsupported_option_b

makes client reconnect, since it contains mandatory unsupported option.

OVPN3-1234

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2024-08-08 14:43:11 +00:00
..
continuation_fragment.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
continuation.hpp push update: base implementation 2024-08-08 14:43:11 +00:00
merge.hpp Add various moves as suggested by Coverity 2024-01-31 17:02:45 +01:00
sanitize.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
servpush.hpp Cleanup API for JSON, map() --> asObject() etc 2024-01-23 13:21:53 +00:00