watchd: make use of ssl configurable
This commit is contained in:
@@ -4,7 +4,7 @@ _loaded = False
|
||||
|
||||
def load():
|
||||
if _loaded: return
|
||||
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after
|
||||
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after, use_ssl
|
||||
|
||||
## read the config files
|
||||
parser = SafeConfigParser()
|
||||
@@ -19,6 +19,7 @@ def load():
|
||||
watchd_threads = parser.getint('watcherd', 'threads')
|
||||
timeout = parser.getint('watcherd', 'timeout')
|
||||
submit_after = parser.getint('watcherd', 'submit_after')
|
||||
use_ssl = parser.getboolean('watcherd', 'use_ssl')
|
||||
|
||||
# allow overriding select items from the commandline
|
||||
import argparse
|
||||
|
||||
Reference in New Issue
Block a user