mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
ipsec: only plug when enabled and has phase 1 entries
Spotted by: @adschellevis
This commit is contained in:
parent
8c32e798c4
commit
ca3f686dca
@ -64,7 +64,8 @@ function if_ipsec_interfaces()
|
||||
|
||||
$interfaces = array();
|
||||
|
||||
if (isset($config['ipsec']['phase1']) && count($config['ipsec']['phase1'])) {
|
||||
if ((isset($config['ipsec']['phase1']) && count($config['ipsec']['phase1'])) &&
|
||||
(isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable']))) {
|
||||
$oic = array("enable" => true);
|
||||
$oic['if'] = 'enc0';
|
||||
$oic['descr'] = 'IPsec';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user