From c3bb49d2293215230d0baeceaff520e785125753 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jul 2021 22:36:01 +0200 Subject: [PATCH] proxywatchd: make use of verifycert --- proxywatchd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxywatchd.py b/proxywatchd.py index 3a59ea0..1d2d254 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -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')