mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revise async_crypto setting
This commit is contained in:
parent
382fa81d0f
commit
23b2c59ef5
@ -136,7 +136,7 @@ function vpn_ipsec_configure($restart = false) {
|
||||
$ipseccfg = $config['ipsec'];
|
||||
|
||||
/* Configure asynchronous crypto. See https://redmine.pfsense.org/issues/8772 */
|
||||
set_sysctl(array('net.inet.ipsec.async_crypto' => (int) ($ipseccfg['async_crypto'] == "enabled") ));
|
||||
set_sysctl(array('net.inet.ipsec.async_crypto' => (int) (isset($ipseccfg['async_crypto']) && ($ipseccfg['async_crypto'] == "enabled"))));
|
||||
|
||||
if (!ipsec_enabled()) {
|
||||
/* try to stop charon */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user