From 8693e53dde9fd54a29b838f5e19eaf91a3584195 Mon Sep 17 00:00:00 2001 From: Ondrej Kokes Date: Mon, 29 Jul 2024 07:24:38 +0200 Subject: [PATCH] [red] vypnout tls verifikaci (#298) --- data/red/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/red/main.py b/data/red/main.py index 849f6b1..52a2d45 100755 --- a/data/red/main.py +++ b/data/red/main.py @@ -5,10 +5,13 @@ import json import logging import multiprocessing +import ssl import os from urllib.parse import urlparse from urllib.request import Request, urlopen +ssl._create_default_https_context = ssl._create_unverified_context + HTTP_TIMEOUT = 60 # TODO: mozna nebude treba, mozna budou URL nemenne