diff options
author | SunStroke74 <andrey.b.nikitin@gmail.com> | 2014-12-27 20:44:17 +0500 |
---|---|---|
committer | SunStroke74 <andrey.b.nikitin@gmail.com> | 2014-12-27 20:44:17 +0500 |
commit | c621a1088eb70c39fd8dbcc7fbefc48d3c03fa53 (patch) | |
tree | 36678ff74741e0740e52cfe3b82e3082f0473316 /config/havp/havp.inc | |
parent | 5889ffb5e002dab1e71b8ff4d0cef5f5bb90d5ba (diff) | |
download | pfsense-packages-c621a1088eb70c39fd8dbcc7fbefc48d3c03fa53.tar.gz pfsense-packages-c621a1088eb70c39fd8dbcc7fbefc48d3c03fa53.tar.bz2 pfsense-packages-c621a1088eb70c39fd8dbcc7fbefc48d3c03fa53.zip |
Added ability to change ClamAV mode from GUI
Attention.
Don`t know why, but to properly change mode settings needs to be saved twice. Looks like reading settings executing before "save" command. Maybe someone could investigate that. At this version added notice in gui.
Diffstat (limited to 'config/havp/havp.inc')
-rw-r--r-- | config/havp/havp.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc index 08937a2f..6c26a0d4 100644 --- a/config/havp/havp.inc +++ b/config/havp/havp.inc @@ -48,7 +48,8 @@ if(!function_exists("filter_configure")) define('HV_DEBUG', 'false'); # use Clamd daemon (another - use libclam) -define('HV_USE_CLAMD', 'true'); +$use_clamd_mode = $config['installedpackages']['havp']['config'][0]['use_clamd']; +define('HV_USE_CLAMD', $use_clamd_mode); define('HV_CLAMD_TCPSOCKET', 'true'); # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |