From 958da82445d99043aa9439ce578f158dea6e463c Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Tue, 20 Apr 2021 21:34:22 -0700 Subject: [PATCH] Warn if is set in GlobalProtect XML config Signed-off-by: Daniel Lenski --- gpst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpst.c b/gpst.c index 29054749..39b6daa3 100644 --- a/gpst.c +++ b/gpst.c @@ -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 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); -- 2.50.1