diff options
author | Warren Baker <warren@decoy.co.za> | 2014-02-26 11:48:42 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-02-26 11:49:05 +0200 |
commit | 2601bbd01ecb65bbbcf7f71b42aac62374561f97 (patch) | |
tree | c12e63e358502a4a3645b25ac8bf866083e1d966 | |
parent | af9cdeed622f7b2b6dad9bef3074424be544a5ac (diff) | |
download | pfsense-packages-2601bbd01ecb65bbbcf7f71b42aac62374561f97.tar.gz pfsense-packages-2601bbd01ecb65bbbcf7f71b42aac62374561f97.tar.bz2 pfsense-packages-2601bbd01ecb65bbbcf7f71b42aac62374561f97.zip |
Respect the 0 value
-rw-r--r-- | config/unbound/unbound.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc index f38aebb1..e47a720f 100644 --- a/config/unbound/unbound.inc +++ b/config/unbound/unbound.inc @@ -450,8 +450,8 @@ EOF; $harden_dnssec_stripped = ($adv_config['harden_dnssec_stripped'] == "on") ? "yes" : "no"; $prefetch = ($adv_config['prefetch'] == "on") ? "yes" : "no"; $prefetch_key = ($adv_config['prefetch_key'] == "on") ? "yes" : "no"; - $outgoing_num_tcp = (!empty($adv_config['outgoing_num_tcp'])) ? $adv_config['outgoing_num_tcp'] : "10"; - $incoming_num_tcp = (!empty($adv_config['incoming_num_tcp'])) ? $adv_config['incoming_num_tcp'] : "10"; + $outgoing_num_tcp = isset($adv_config['outgoing_num_tcp']) ? $adv_config['outgoing_num_tcp'] : "10"; + $incoming_num_tcp = isset($adv_config['incoming_num_tcp']) ? $adv_config['incoming_num_tcp'] : "10"; $edns_buffer_size = (!empty($adv_config['edns_buffer_size'])) ? $adv_config['edns_buffer_size'] : "4096"; $num_queries_per_thread = (!empty($adv_config['num_queries_per_thread'])) ? $adv_config['num_queries_per_thread'] : "4096"; $jostle_timeout = (!empty($adv_config['jostle_timeout'])) ? $adv_config['jostle_timeout'] : "200"; |