]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/vpnmain.cgi
Merge remote-tracking branch 'origin/core119' into kernel-4.14
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / vpnmain.cgi
index 17873d62bea2933affb1d6fa662e66eb63f3eb3d..2a0351ea04c4f31f7b26d0d7ee3e40125f8a6f2b 100644 (file)
@@ -436,6 +436,12 @@ sub writeipsecfiles {
                        if ($start_action eq 'route' && $inactivity_timeout > 0) {
                                print CONF "\tinactivity=$inactivity_timeout\n";
                        }
+
+                       # Restart the connection immediately when it has gone down
+                       # unexpectedly
+                       if ($start_action eq 'start') {
+                               print CONF "\tcloseaction=restart\n";
+                       }
                }
 
                # Fragmentation