Fix the ssl verification turn on code.
This commit is contained in:
parent
02557f67fb
commit
0e4c29b0c6
1 changed files with 1 additions and 1 deletions
|
@ -135,8 +135,8 @@ class MatrixServer:
|
|||
elif option_name == "ssl_verify":
|
||||
value = W.config_boolean(option)
|
||||
if value:
|
||||
self.ssl_context.check_hostname = True
|
||||
self.ssl_context.verify_mode = ssl.CERT_REQUIRED
|
||||
self.ssl_context.check_hostname = True
|
||||
else:
|
||||
self.ssl_context.check_hostname = False
|
||||
self.ssl_context.verify_mode = ssl.CERT_NONE
|
||||
|
|
Loading…
Add table
Reference in a new issue