Revision c67d7be7
Added by Warren Baker over 13 years ago
etc/inc/unbound.inc | ||
---|---|---|
192 | 192 |
function unbound_resync_config() { |
193 | 193 |
global $config,$g; |
194 | 194 |
|
195 |
$unboundcfg = $config['config']['unbound']; |
|
196 |
|
|
195 | 197 |
/* Setup optimization */ |
196 | 198 |
$optimization = unbound_optimization(); |
197 | 199 |
|
... | ... | |
256 | 258 |
pidfile: "/var/run/unbound.pid" |
257 | 259 |
use-syslog: yes |
258 | 260 |
port: 53 |
259 |
verbosity: {$config['loglevel']}
|
|
261 |
verbosity: {$unboundcfg['loglevel']}
|
|
260 | 262 |
harden-referral-path: no |
261 | 263 |
do-ip4: yes |
262 | 264 |
do-ip6: yes |
... | ... | |
273 | 275 |
outgoing-num-tcp: 10 |
274 | 276 |
incoming-num-tcp: 10 |
275 | 277 |
edns-buffer-size: 4096 |
276 |
cache-max-ttl: {$config['cache_max_ttl']}
|
|
277 |
cache-min-ttl: {$config['cache_min_ttl']}
|
|
278 |
cache-max-ttl: {$unboundcfg['cache_max_ttl']}
|
|
279 |
cache-min-ttl: {$unboundcfg['cache_min_ttl']}
|
|
278 | 280 |
harden-dnssec-stripped: yes |
279 | 281 |
{$optimization['number_threads']} |
280 | 282 |
{$optimization['msg_cache_slabs']} |
... | ... | |
286 | 288 |
{$optimization['outgoing_range']} |
287 | 289 |
{$optimization['so_rcvbuf']} |
288 | 290 |
{$anchor_file} |
289 |
prefetch: {$config['prefetch']}
|
|
290 |
prefetch-key: {$config['prefetch_key']}
|
|
291 |
prefetch: {$unboundcfg['prefetch']}
|
|
292 |
prefetch-key: {$unboundcfg['prefetch_key']}
|
|
291 | 293 |
# Statistics |
292 | 294 |
{$statistics} |
293 | 295 |
# Interface IP(s) to bind to |
Also available in: Unified diff
Use the correct config variable for config