]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
GP: run HIP report 60 seconds in advance of the server's interval (just as we rekey...
authorDaniel Lenski <dlenski@gmail.com>
Tue, 21 Apr 2020 02:34:36 +0000 (19:34 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 21 Apr 2020 16:12:37 +0000 (09:12 -0700)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-globalprotect.c

index 73910760891158cfdedb78f7d2e2db25e041b2ca..e9c1edca837b74aa22e24e0f95d56f2f8db143b5 100644 (file)
@@ -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);
                                                }