mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
use hight protocol version of openssl by default
This commit is contained in:
parent
f9ade3af34
commit
b01fe34e56
@ -1895,6 +1895,20 @@ class SSLVersion(Setting):
|
||||
section = "SSL"
|
||||
cli = ["--ssl-version"]
|
||||
validator = validate_ssl_version
|
||||
|
||||
if hasattr(ssl, "PROTOCOL_TLS"):
|
||||
default = ssl.PROTOCOL_TLS
|
||||
else:
|
||||
default = ssl.PROTOCOL_SSLv23
|
||||
|
||||
desc = """\
|
||||
SSL version to use (see stdlib ssl module's)
|
||||
|
||||
.. versionchanged:: 20.0.1
|
||||
The default value has been changed from ``ssl.PROTOCOL_SSLv23`` to
|
||||
``ssl.PROTOCOL_TLS`` when Python >= 3.6 .
|
||||
|
||||
"""
|
||||
default = ssl.PROTOCOL_SSLv23
|
||||
desc = """\
|
||||
SSL version to use.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user