aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-08-27 20:22:48 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-08-27 20:22:48 -0400
commitf1c1080e317d18854a4a13eb4b409d2968ef3ad4 (patch)
tree4e3fb52df6d1c05af1dead29c9dc510f28f49aba
parentce07b15de33b4847df5498f9bbae93e2b1e893ca (diff)
downloadpfsense-packages-f1c1080e317d18854a4a13eb4b409d2968ef3ad4.tar.gz
pfsense-packages-f1c1080e317d18854a4a13eb4b409d2968ef3ad4.tar.bz2
pfsense-packages-f1c1080e317d18854a4a13eb4b409d2968ef3ad4.zip
Fix missing $ sign in front of variable name.
-rw-r--r--config/suricata/suricata.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/suricata/suricata.inc b/config/suricata/suricata.inc
index 59c620b4..25321ddc 100644
--- a/config/suricata/suricata.inc
+++ b/config/suricata/suricata.inc
@@ -288,7 +288,7 @@ function suricata_build_list($suricatacfg, $listname = "", $passlist = false, $e
}
// Always add loopback to HOME_NET and passlist
- if (!externallist) {
+ if (!$externallist) {
if (!in_array("127.0.0.1", $home_net))
$home_net[] = "127.0.0.1";
if (!in_array("::1", $home_net))
@@ -314,7 +314,7 @@ function suricata_build_list($suricatacfg, $listname = "", $passlist = false, $e
}
}
}
- elseif (!externallist && $localnet != 'yes') {
+ elseif (!$externallist && $localnet != 'yes') {
if (is_ipaddr($suricataip)) {
if (!in_array($suricataip, $home_net))
$home_net[] = $suricataip;
@@ -325,7 +325,7 @@ function suricata_build_list($suricatacfg, $listname = "", $passlist = false, $e
// Trim off the interface designation (e.g., %em1) if present
if (strpos($suricataip, "%") !== FALSE)
$suricataip = substr($suricataip, 0, strpos($suricataip, "%"));
- if (($externallist && $localnet == 'yes') || (!externallist && (!$passlist || $localnet == 'yes' || empty($localnet)))) {
+ if (($externallist && $localnet == 'yes') || (!$externallist && (!$passlist || $localnet == 'yes' || empty($localnet)))) {
if (is_ipaddrv6($suricataip)) {
if ($suricatacfg['interface'] <> "wan") {
$sn = get_interface_subnetv6($suricatacfg['interface']);
@@ -335,7 +335,7 @@ function suricata_build_list($suricatacfg, $listname = "", $passlist = false, $e
}
}
}
- elseif (!externallist && $localnet != 'yes') {
+ elseif (!$externallist && $localnet != 'yes') {
if (is_ipaddrv6($suricataip)) {
if (!in_array($suricataip, $home_net))
$home_net[] = $suricataip;
@@ -352,7 +352,7 @@ function suricata_build_list($suricatacfg, $listname = "", $passlist = false, $e
$home_net[] = $suricataip;
}
- if (($externallist && $localnet == 'yes') || (!externallist && (!$passlist || $localnet == 'yes' || empty($localnet)))) {
+ if (($$externallist && $localnet == 'yes') || (!$externallist && (!$passlist || $localnet == 'yes' || empty($localnet)))) {
/*************************************************************************/
/* Iterate through the interface list and write out pass list items and */
/* also compile a HOME_NET list of all local interfaces for suricata. */