vpnmain.cgi: Added inclusion of ipsec.user-post.conf to the end of ipsec.conf in order to allow connection parameters to be overwritten in ipsec.user.conf.

This commit is contained in:
Christoph Anderegg
2015-03-02 22:10:13 +01:00
committed by Michael Tremer
parent 09e3b0fa35
commit 165b25b2dc

View 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);