proxywatchd: make use of verifycert
This commit is contained in:
@@ -112,6 +112,7 @@ class WorkerJob():
|
||||
if self.consecutive_success > 0 and (self.consecutive_success % 3) == 0: use_ssl = 1
|
||||
server_port = 443 if use_ssl else 80
|
||||
|
||||
verifycert = True if use_ssl else False
|
||||
protos = ['http', 'socks5', 'socks4'] if self.proto is None else [self.proto]
|
||||
|
||||
fail_inc = 1
|
||||
@@ -133,7 +134,7 @@ class WorkerJob():
|
||||
]
|
||||
|
||||
try:
|
||||
sock = rocksock.Rocksock(host=srv, port=server_port, ssl=use_ssl, proxies=proxies, timeout=config.watchd.timeout)
|
||||
sock = rocksock.Rocksock(host=srv, port=server_port, ssl=use_ssl, proxies=proxies, timeout=config.watchd.timeout, verifycert=verifycert)
|
||||
sock.connect()
|
||||
if checktype == 'irc':
|
||||
sock.send('NICK\n')
|
||||
|
||||
Reference in New Issue
Block a user