mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Try disabling check hostname on time checks
This commit is contained in:
@@ -640,6 +640,7 @@ def getLocalGoogleTimeOffset(testLocation='admin.googleapis.com'):
|
|||||||
# is way off. This could be spoofed / MitM but we'll fail for those
|
# is way off. This could be spoofed / MitM but we'll fail for those
|
||||||
# situations everywhere else but here.
|
# situations everywhere else but here.
|
||||||
badhttp = transport.create_http()
|
badhttp = transport.create_http()
|
||||||
|
badhttp.check_hostname = False
|
||||||
badhttp.disable_ssl_certificate_validation = True
|
badhttp.disable_ssl_certificate_validation = True
|
||||||
googleUTC = dateutil.parser.parse(
|
googleUTC = dateutil.parser.parse(
|
||||||
badhttp.request('https://' + testLocation, 'HEAD')[0]['date'])
|
badhttp.request('https://' + testLocation, 'HEAD')[0]['date'])
|
||||||
|
|||||||
Reference in New Issue
Block a user