Make install_vpn_opts tolerate missing IP addresses on reconnect
Some protocols don't always send IP address(es) in configuration packets in
the event of reconnection/rekey. It should be harmless for OpenConnect to
assume that the address(es) are staying the same when they aren't explicitly
specified as changing.
Signed-off-by: Daniel Lenski <email address hidden>
Add parameter to allow specifying no IP install_vpn_opts
NX also uses IPCP for getting its IPv4-IP while all the other connection
parameters are retrieved via HTTP. This increases the number of
protocols that need special treatment in install_vpn_opts to two.
Add a generic parameter `allow_no_ip` to install_vpn_opts which is set
to true when called from F5 and NX, thus keeping the code free of
protocol-specific bits.
[DRL tweaked comments.]
Signed-off-by: Andreas Gnau <email address hidden>
Signed-off-by: Daniel Lenski <email address hidden>
Annotate vpnc-script-win.js with a header documenting its exact source revision
By annotating the vpnc-script-win.js included in the Windows installers
with information about the exact source revision, we will ease reporting
and reduce confusion about problems resulting from interactions between
OpenConnect and vpnc-script.
Example of the header added to vpnc-script-win.js:
8677139...
by
Dimitri Papadopoulos <email address hidden>
Fix DeepSource alert
Logging is not lazy
The logging statement has the call of the form
logging.(format_string % (format_args...))
For such calls, it is recommended to leave string interpolation to the
logging method itself and be written as
logging.(format_string, format_args...)
so that the program may avoid incurring the cost of the interpolation
in those cases in which no message will be logged. For more details, see
PEP 282.