From 1003dec108365f1ecc06eb840a0ee49d1d7bfb59 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 26 Sep 2006 19:39:54 +0000 Subject: Change interface_array to iface_array --- packages/snort/snort.inc | 4 ++-- packages/snort/snort.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index 6965fb03..12312b2e 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -49,7 +49,7 @@ function sync_package_snort() { $iflist = array("lan" => "LAN"); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) $iflist['opt' . $i] = "opt{$i}"; - foreach($_POST['interface_array'] as $iface) { + foreach($_POST['iface_array'] as $iface) { $if = convert_friendly_interface_to_real_interface_name($iface); if($if) { $ifaces_final .= " -i " . $if; @@ -98,7 +98,7 @@ function generate_snort_conf() { global $config, $g, $snort_conf_file; /* obtain external interface */ /* XXX: make multi wan friendly */ - $snort_ext_int = $config['installedpackages']['snort']['config'][0]['interface_array'][0]; + $snort_ext_int = $config['installedpackages']['snort']['config'][0]['iface_array'][0]; /* set the snort performance model */ if($config['installedpackages']['snort']['config'][0]['performance']) diff --git a/packages/snort/snort.xml b/packages/snort/snort.xml index 528687b6..33090913 100644 --- a/packages/snort/snort.xml +++ b/packages/snort/snort.xml @@ -53,7 +53,7 @@ Interface - interface_array + iface_array lan true 3 -- cgit v1.2.3