implement combo config parser

allows all options to be overridden by command line.

e.g.
[watchd]
threads=10
debug=false

--watch.threads=50 --debug=true
This commit is contained in:
rofl0r
2019-01-08 02:17:04 +00:00
parent e7b8d526c0
commit f16f754b0e
5 changed files with 131 additions and 67 deletions

View File

@@ -1,9 +1,8 @@
[global]
tor_host = 127.0.0.1:9050
[common]
tor_hosts = 127.0.0.1:9050
database = proxylist.sqlite
[watcherd]
proxy_file = false
[watchd]
max_fail = 5
threads = 10
timeout = 15
@@ -11,10 +10,9 @@ submit_after = 200
use_ssl = false
debug = false
[proxyfind]
[ppf]
search = true
timeout = 30
threads = 3
checktime = 3600
perfail_checktime = 3600