File nm.patch of Package NetworkManager-openconnect
--- NetworkManager-openconnect-1.2.8/src/nm-openconnect-service.c 2022-07-19 22:47:58.467162491 +0300
+++ NetworkManager-openconnect-1.2.8/src/nm-openconnect-service.c 2022-01-14 20:54:13.000000000 +0300
@@ -418,7 +418,7 @@
/* The actual gateway to use (after redirection) comes from the auth
dialog, so it's in the secrets hash not the properties */
- props_vpn_gw = nm_setting_vpn_get_secret (s_vpn, NM_OPENCONNECT_KEY_GATEWAY);
+ props_vpn_gw = nm_setting_vpn_get_data_item (s_vpn, NM_OPENCONNECT_KEY_GATEWAY);
if (!props_vpn_gw || !strlen (props_vpn_gw) ) {
g_set_error (error,
NM_VPN_PLUGIN_ERROR,