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:
Franco Fichtner 2017-03-27 06:29:24 +02:00
parent f3c0f74fbe
commit 5f653cf0b9

View File

@ -45,4 +45,6 @@ if (file_exists('/var/run/booting')) {
return;
}
$ipseclck = lock('ipsecdns', LOCK_EX);
ipsec_configure_do(true);
unlock($ipseclck);