diff options
author | Ryan Wagoner <rsw686@pfsense.org> | 2006-12-11 01:54:27 +0000 |
---|---|---|
committer | Ryan Wagoner <rsw686@pfsense.org> | 2006-12-11 01:54:27 +0000 |
commit | f78c18610991f0d4ab7fdd696f3aaac8259f9b24 (patch) | |
tree | 7dadb6fee8e12aaf4e91dec1e2c536daec45e6e5 /packages | |
parent | 67f8148144eef81427977f96ab2a2902266ebd08 (diff) | |
download | pfsense-packages-f78c18610991f0d4ab7fdd696f3aaac8259f9b24.tar.gz pfsense-packages-f78c18610991f0d4ab7fdd696f3aaac8259f9b24.tar.bz2 pfsense-packages-f78c18610991f0d4ab7fdd696f3aaac8259f9b24.zip |
fix mysql logging support
Diffstat (limited to 'packages')
-rw-r--r-- | packages/imspector/imspector.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/imspector/imspector.inc b/packages/imspector/imspector.inc index 349d9976..875bcf43 100644 --- a/packages/imspector/imspector.inc +++ b/packages/imspector/imspector.inc @@ -55,7 +55,10 @@ } function validate_form_imspector($post, $input_errors) { - + if($post['iface_array']) + foreach($post['iface_array'] as $iface) + if($iface == "wan") + $input_errors[] = 'It is a security risk to specify WAN in the \'Interface\' field'; } function sync_package_imspector() { @@ -139,7 +142,8 @@ if [ `pgrep imspector | wc -l` != 0 ]; then fi EOD; - $start = $stop."\n\t/usr/local/sbin/imspector -c \"{$configfile}\""; + $start = $stop."\n\tldconfig -m /usr/local/lib/mysql\n"; + $start .= "\t/usr/local/sbin/imspector -c \"{$configfile}\""; write_rcfile(array( "file" => "imspector.sh", |