mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
* ipsec: Check ipsec config exists before using, closes #6411
This commit is contained in:
parent
d82396db4f
commit
a337d62008
@ -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…
x
Reference in New Issue
Block a user