mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-08 21:18:00 +03:00
Chaged a bit the default ssl behaviour
This commit is contained in:
parent
2749bfc40c
commit
4c4820f166
@ -52,12 +52,10 @@ __updated__ = '2016-04-04'
|
||||
# Default ssl context is unverified, as MOST servers that we will connect will be with self signed certificates...
|
||||
try:
|
||||
_create_unverified_https_context = ssl._create_unverified_context
|
||||
ssl._create_default_https_context = _create_unverified_https_context
|
||||
except AttributeError:
|
||||
# Legacy Python that doesn't verify HTTPS certificates by default
|
||||
pass
|
||||
else:
|
||||
# Handle target environment that doesn't support HTTPS verification
|
||||
ssl._create_default_https_context = _create_unverified_https_context
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user