summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-01-06 05:46:09 +0300
committerMaxim Devaev <[email protected]>2022-01-06 05:46:09 +0300
commit0efd93d496337856af3437df84dbc980a86819d4 (patch)
treeec3abd18c61082ded18bab1aa24ce5e692a496d4 /kvmd
parenta67c20be2950bb59f72e44a5a5c92fa8cbaaa920 (diff)
fixed deprecation warning
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/validators/net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/net.py b/kvmd/validators/net.py
index 9036166d..e6ba68e6 100644
--- a/kvmd/validators/net.py
+++ b/kvmd/validators/net.py
@@ -112,7 +112,7 @@ def valid_ssl_ciphers(arg: Any) -> str:
name = "SSL ciphers"
arg = valid_stripped_string_not_empty(arg, name)
try:
- ssl.SSLContext().set_ciphers(arg)
+ ssl.SSLContext(ssl.PROTOCOL_TLS).set_ciphers(arg)
except Exception as err:
raise ValidatorError(f"The argument {arg!r} is not a valid {name}: {err}")
return arg