mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
ipsec, mixed-up includes see https://github.com/opnsense/core/pull/3311
This commit is contained in:
parent
2056e907ff
commit
dfd48d2934
@ -1003,7 +1003,7 @@ function ipsec_configure_do($verbose = false, $interface = '')
|
||||
}
|
||||
|
||||
$strongswan = generate_strongswan_conf($strongswanTree);
|
||||
$strongswan .= "\ninclude ipsec.opnsense.d/*.conf\n";
|
||||
$strongswan .= "\ninclude strongswan.opnsense.d/*.conf\n";
|
||||
@file_put_contents("/usr/local/etc/strongswan.conf", $strongswan);
|
||||
unset($strongswan);
|
||||
|
||||
@ -1552,7 +1552,7 @@ EOD;
|
||||
}
|
||||
}
|
||||
}
|
||||
$ipsecconf .= "\ninclude strongswan.opnsense.d/*.conf\n";
|
||||
$ipsecconf .= "\ninclude ipsec.opnsense.d/*.conf\n";
|
||||
// dump file, replace tabs for 2 spaces
|
||||
@file_put_contents("/usr/local/etc/ipsec.conf", str_replace("\t", ' ', $ipsecconf));
|
||||
unset($ipsecconf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user