diff options
author | Maxim Devaev <[email protected]> | 2023-03-13 14:05:49 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-13 17:07:40 +0200 |
commit | de5a93c2b775dbad34779af0d8f47ecad7f45361 (patch) | |
tree | ec2ccb56dfbbc38c2ce8f5cc71cb9ba74c309759 | |
parent | 4b80bd8e07a7b7ec317f5d664aee1bd5d7ae773f (diff) |
fixed deprecation warning about ssl
-rw-r--r-- | kvmd/validators/net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/net.py b/kvmd/validators/net.py index f92dc978..86d9eb39 100644 --- a/kvmd/validators/net.py +++ b/kvmd/validators/net.py @@ -111,7 +111,7 @@ def valid_ssl_ciphers(arg: Any) -> str: name = "SSL ciphers" arg = valid_stripped_string_not_empty(arg, name) try: - ssl.SSLContext(ssl.PROTOCOL_TLS).set_ciphers(arg) + ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER).set_ciphers(arg) except Exception as err: raise ValidatorError(f"The argument {arg!r} is not a valid {name}: {err}") return arg |