mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
ipsec: put back the lock, because...
rc.newwanip, rc.newwanipv6, interface_configure() and interfaces_configure() all call ipsec_configure_do(), which is no wonder why the code can be prone to races.
This commit is contained in:
parent
f3c0f74fbe
commit
5f653cf0b9
@ -45,4 +45,6 @@ if (file_exists('/var/run/booting')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$ipseclck = lock('ipsecdns', LOCK_EX);
|
||||
ipsec_configure_do(true);
|
||||
unlock($ipseclck);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user