Change default user-agent string to be compatible with newer Cisco servers
Hello,
apparently newer Cisco AnyConnect servers refuse the connection when the client's user agent doesn't start with AnyConnect
. This leads to a rather opaque 404 answer by the server, and one has to do a lot of digging to find this out. This frustrating experience has lead the OpenConnect people to change the default user agent to something that starts with AnyConnect
, namely AnyConnect-compatible OpenConnect VPN Agent
. This commit shows the change.
When using OpenConnect via Gnome's VPN settings this doesn't apply though, and one is left with the opaque 404 problem. To my understanding, the reason is that the default user agent that network manager uses does not start with AnyConnect
:
ui_data->vpninfo = (void *)openconnect_vpninfo_new(vpn_useragent ?: "OpenConnect VPN Agent (NetworkManager)",
validate_peer_cert, write_new_config,
nm_process_auth_form, write_progress,
ui_data);
Hence, I'd kindly suggest to do a similar change to the default user agent string here.
Thanks, and thank y'all for this great piece of software :)