From 306681f688c9071d5849e55fd96d07afd40a6edf Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Mon, 20 Apr 2020 19:34:36 -0700 Subject: [PATCH] GP: run HIP report 60 seconds in advance of the server's interval (just as we rekey 60 seconds in advance) Signed-off-by: Daniel Lenski --- auth-globalprotect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-globalprotect.c b/auth-globalprotect.c index 73910760..e9c1edca 100644 --- a/auth-globalprotect.c +++ b/auth-globalprotect.c @@ -408,7 +408,7 @@ static int parse_portal_xml(struct openconnect_info *vpninfo, xmlNode *xml_node, vpn_progress(vpninfo, PRG_INFO, _("Ignoring portal's HIP report interval (%d minutes), because interval is already set to %d minutes.\n"), sec/60, vpninfo->trojan_interval/60); else { - vpninfo->trojan_interval = sec; + vpninfo->trojan_interval = sec - 60; vpn_progress(vpninfo, PRG_INFO, _("Portal set HIP report interval to %d minutes).\n"), sec/60); } -- 2.50.1