aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/snort/snort.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 82ee8f1f..271f10a8 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -131,8 +131,7 @@ function build_base_whitelist($build_netlist, $wanip, $wangw, $wandns, $vips, $v
if($wangw == 'yes') {
/* Add Gateway on WAN interface to whitelist (For RRD graphs) */
- $int = convert_friendly_interface_to_real_interface_name2("WAN");
- $gw = get_interface_gateway($int);
+ $gw = get_interface_gateway('wan');
if($gw)
$home_net .= "{$gw} ";
}