]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vpnmain.cgi: Added inclusion of ipsec.user-post.conf to the end of ipsec.conf in...
authorChristoph Anderegg <christoph@christoph-anderegg.ch>
Mon, 2 Mar 2015 21:10:13 +0000 (22:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2015 10:16:47 +0000 (11:16 +0100)
html/cgi-bin/vpnmain.cgi

index f5ec50079a64dd9ff0f0577a3ed6e2e1cb437624..d86a613d1ff3449010f83cecf606aec0f0b70a4d 100644 (file)
@@ -437,6 +437,14 @@ sub writeipsecfiles {
        }
        print CONF "\n";
     }#foreach key
+
+    # Add post user includes to config file
+    # After the GUI-connections allows to patch connections.
+    if (-e "/etc/ipsec.user-post.conf") {
+        print CONF "include /etc/ipsec.user-post.conf\n";
+        print CONF "\n";
+    }
+
     print SECRETS $last_secrets if ($last_secrets);
     close(CONF);
     close(SECRETS);