diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-04-26 20:50:06 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-04-26 20:50:06 -0400 |
commit | 6b52a44fc8771c2d8024016e98dd3c1c6e6bad4b (patch) | |
tree | bc04251c67eded4bb6867674d1f2012ad9e85ca0 /config/snort | |
parent | 45d19c10894572582363e387c8869ade8fc4039b (diff) | |
download | pfsense-packages-6b52a44fc8771c2d8024016e98dd3c1c6e6bad4b.tar.gz pfsense-packages-6b52a44fc8771c2d8024016e98dd3c1c6e6bad4b.tar.bz2 pfsense-packages-6b52a44fc8771c2d8024016e98dd3c1c6e6bad4b.zip |
Revert log msg back to iface descr instead of if_real.
Diffstat (limited to 'config/snort')
-rwxr-xr-x | config/snort/snort_interfaces.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php index 5419e7c0..e96be262 100755 --- a/config/snort/snort_interfaces.php +++ b/config/snort/snort_interfaces.php @@ -103,11 +103,11 @@ if ($_GET['act'] == 'bartoggle' && is_numeric($id)) { $if_friendly = snort_get_friendly_interface($snortcfg['interface']); if (snort_is_running($snortcfg['uuid'], $if_real, 'barnyard2') == 'no') { - log_error("Toggle (barnyard starting) for {$if_friendly}({$if_real})..."); + log_error("Toggle (barnyard starting) for {$if_friendly}({$snortcfg['descr']})..."); sync_snort_package_config(); snort_barnyard_start($snortcfg, $if_real); } else { - log_error("Toggle (barnyard stopping) for {$if_friendly}({$if_real})..."); + log_error("Toggle (barnyard stopping) for {$if_friendly}({$snortcfg['descr']})..."); snort_barnyard_stop($snortcfg, $if_real); } @@ -123,7 +123,7 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) { $if_friendly = snort_get_friendly_interface($snortcfg['interface']); if (snort_is_running($snortcfg['uuid'], $if_real) == 'yes') { - log_error("Toggle (snort stopping) for {$if_friendly}({$if_real})..."); + log_error("Toggle (snort stopping) for {$if_friendly}({$snortcfg['descr']})..."); snort_stop($snortcfg, $if_real); header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); @@ -132,7 +132,7 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) { header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } else { - log_error("Toggle (snort starting) for {$if_friendly}({$if_real})..."); + log_error("Toggle (snort starting) for {$if_friendly}({$snortcfg['descr']})..."); /* set flag to rebuild interface rules before starting Snort */ $rebuild_rules = "on"; |