diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-10 10:18:21 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-10 10:20:07 -0600 |
commit | 179ab6b36448e8bb06a639c303512905c93eb7e5 (patch) | |
tree | 5572c519232cdabe6be012904a655c3cad46b269 /src/usr/local/www/firewall_nat_npt_edit.php | |
parent | 94d494fbc0da7d85b0ef8f04dcd2bd4ab0e0a7c7 (diff) | |
download | pfsense-179ab6b36448e8bb06a639c303512905c93eb7e5.zip pfsense-179ab6b36448e8bb06a639c303512905c93eb7e5.tar.gz |
Eliminate a few more cases of $config['ipsec']['enable'].
Mostly when dealing with enc0 interface.
Diffstat (limited to 'src/usr/local/www/firewall_nat_npt_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_npt_edit.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_nat_npt_edit.php b/src/usr/local/www/firewall_nat_npt_edit.php index f4ef6fd..f29806d 100644 --- a/src/usr/local/www/firewall_nat_npt_edit.php +++ b/src/usr/local/www/firewall_nat_npt_edit.php @@ -191,10 +191,8 @@ function build_if_list() { $interfaces['pppoe'] = "PPPoE Server"; /* add ipsec interfaces */ - if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable'])) { - if (have_ruleint_access("enc0")) - $interfaces["enc0"] = "IPsec"; - } + if (ipsec_enabled() && have_ruleint_access("enc0")) + $interfaces["enc0"] = "IPsec"; /* add openvpn/tun interfaces */ if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) |