summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc')
-rw-r--r--src/etc/inc/easyrule.inc3
-rw-r--r--src/etc/inc/filter.inc2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/etc/inc/easyrule.inc b/src/etc/inc/easyrule.inc
index dbb8cfc..3c53e92 100644
--- a/src/etc/inc/easyrule.inc
+++ b/src/etc/inc/easyrule.inc
@@ -52,9 +52,8 @@ function easyrule_find_rule_interface($int) {
}
/* add ipsec interfaces */
- if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
+ if (ipsec_enabled())
$iflist["enc0"] = "IPSEC";
- }
if (isset($iflist[$int])) {
return $int;
diff --git a/src/etc/inc/filter.inc b/src/etc/inc/filter.inc
index d1ce9b5..36ab337 100644
--- a/src/etc/inc/filter.inc
+++ b/src/etc/inc/filter.inc
@@ -1171,7 +1171,7 @@ function filter_generate_optcfg_array() {
}
}
/* add ipsec interfaces */
- if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) {
+ if (ipsec_enabled()) {
$oic = array();
$oic['if'] = 'enc0';
$oic['descr'] = 'IPsec';
OpenPOWER on IntegriCloud