Commit 7ad3be51 authored by Franco Fichtner's avatar Franco Fichtner

ipsec: two small issues noticed by @reep; fixes #193

parent ca18801b
...@@ -792,7 +792,6 @@ EOD; ...@@ -792,7 +792,6 @@ EOD;
if (!empty($ealgoAHsp2arr)) if (!empty($ealgoAHsp2arr))
$ipsecconf .= "\tah = " . join(',', $ealgoAHsp2arr) . "!\n"; $ipsecconf .= "\tah = " . join(',', $ealgoAHsp2arr) . "!\n";
if (!empty($ealgoESPsp2arr)) { if (!empty($ealgoESPsp2arr)) {
file_put_contents("/var/etc/ipsec/dump_test", print_r($ealgoESPsp2arr, true));
$ipsecconf .= "\tesp = " . join(',', $ealgoESPsp2arr) . "!\n"; $ipsecconf .= "\tesp = " . join(',', $ealgoESPsp2arr) . "!\n";
} }
if (!empty($authentication)) if (!empty($authentication))
......
...@@ -158,7 +158,7 @@ defCmdT("dhcpd.conf","cat /var/dhcpd/etc/dhcpd.conf"); ...@@ -158,7 +158,7 @@ defCmdT("dhcpd.conf","cat /var/dhcpd/etc/dhcpd.conf");
defCmdT("df","/bin/df"); defCmdT("df","/bin/df");
defCmdT("ipsec.conf","cat /var/etc/ipsec/ipsec.conf"); defCmdT("ipsec.conf","cat /usr/local/etc/ipsec.conf");
defCmdT("SPD","/sbin/setkey -DP"); defCmdT("SPD","/sbin/setkey -DP");
defCmdT("SAD","/sbin/setkey -D"); defCmdT("SAD","/sbin/setkey -D");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment