-
Committer:
Martin
-
Date:
2019-06-15 18:01:53 UTC
-
mto:
This revision was merged to the branch mainline in
revision
7336.
-
Revision ID:
gzlist@googlemail.com-20190615180153-13ofk7wvvyp8sm65
Only check https hostname if not cert_reqs=none
Avoids error raised from standard lib ssl module:
ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
Also set check_hostname on the context rather than the module.