diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-06-17 12:24:46 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-06-17 12:26:23 -0300 |
commit | 9507aa0ec067198b432dac772bf8303e1d0de8f6 (patch) | |
tree | c27e5e0be4425ac05c329f45edc0a0de0892fea5 /etc/inc | |
parent | b48e2e6bcc3d14999488c5c4eb5759af2ec60cb5 (diff) | |
download | pfsense-9507aa0ec067198b432dac772bf8303e1d0de8f6.zip pfsense-9507aa0ec067198b432dac772bf8303e1d0de8f6.tar.gz |
Allow user to set interval between attempts to resolve hostnames configured on aliases
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 0b46c2c..7635cc8 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -343,7 +343,11 @@ function filter_configure_sync($delete_states_if_needed = true) { * FilterDNS has three debugging levels. The default choosen is 1. * Availabe are level 2 and greater then 2. */ - mwexec("/usr/local/sbin/filterdns -p {$g['varrun_path']}/filterdns.pid -i 300 -c {$g['varetc_path']}/filterdns.conf -d 1"); + if (isset($config['system']['aliasesresolveinterval']) && is_numeric($config['system']['aliasesresolveinterval'])) + $resolve_interval = $config['system']['aliasesresolveinterval']; + else + $resolve_interval = 300; + mwexec("/usr/local/sbin/filterdns -p {$g['varrun_path']}/filterdns.pid -i {$resolve_interval} -c {$g['varetc_path']}/filterdns.conf -d 1"); } } else { killbypid("{$g['varrun_path']}/filterdns.pid"); |