Skip to content

Commit

Permalink
Warn if <quarantine> is set in GlobalProtect XML config
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
  • Loading branch information
dlenski committed Apr 21, 2021
1 parent fef15a2 commit 958da82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gpst.c
Expand Up @@ -383,6 +383,10 @@ static int gpst_parse_config_xml(struct openconnect_info *vpninfo, xmlNode *xml_
vpninfo->ip_info.mtu = atoi(s);
else if (!xmlnode_get_val(xml_node, "lifetime", &s))
vpninfo->auth_expiration = time(NULL) + atol(s);
else if (!xmlnode_get_val(xml_node, "quarantine", &s) && strcmp(s, "no"))
vpn_progress(vpninfo, PRG_DEBUG,
_("WARNING: Config XML contains <quarantine> tag with value of \"%s\".\n"
" VPN connectivity may be disabled or limited.\n"), s);
else if (!xmlnode_get_val(xml_node, "disconnect-on-idle", &s)) {
int sec = atoi(s);
vpn_progress(vpninfo, PRG_INFO, _("Idle timeout is %d minutes.\n"), sec/60);
Expand Down

0 comments on commit 958da82

Please sign in to comment.