Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
d65100e1
Commit
d65100e1
authored
May 24, 2022
by
Philipp Hörist
Browse files
imprv: Remove unnecessary validation flags override
VALIDATE_ALL is the default according to the docs
parent
51768bc0
Pipeline
#9988
passed with stages
in 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/tcp.py
View file @
d65100e1
...
...
@@ -173,7 +173,6 @@ class TCPConnection(Connection):
if
self
.
_address
.
type
==
ConnectionType
.
DIRECT_TLS
:
tls_client
.
set_advertised_protocols
([
'xmpp-client'
])
tls_client
.
set_validation_flags
(
Gio
.
TlsCertificateFlags
.
VALIDATE_ALL
)
tls_client
.
connect
(
'accept-certificate'
,
self
.
_check_certificate
)
tls_client
.
connect
(
'notify::peer-certificate'
,
self
.
_on_certificate_set
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment