mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
* ipsec: Check ipsec config exists before using, closes #6411
This commit is contained in:
parent
d82396db4f
commit
a337d62008
1 changed files with 1 additions and 1 deletions
|
|
@ -1270,7 +1270,7 @@ function ipsec_configure_do($verbose = false, $interface = '')
|
|||
set_single_sysctl('net.key.preferred_oldsa', '0');
|
||||
}
|
||||
|
||||
$ipseccfg = $config['ipsec'];
|
||||
$ipseccfg = $config['ipsec'] ?? [];
|
||||
$a_phase1 = isset($config['ipsec']['phase1']) ? $config['ipsec']['phase1'] : [];
|
||||
$a_phase2 = isset($config['ipsec']['phase2']) ? $config['ipsec']['phase2'] : [];
|
||||
$a_client = isset($config['ipsec']['client']) ? $config['ipsec']['client'] : [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue