fix override dns

This commit is contained in:
marco
2021-01-10 13:41:04 +01:00
parent 18bf5e998e
commit 4bae35e072

View File

@@ -132,6 +132,8 @@ class CipherSuiteAdapter(host_header_ssl.HostHeaderSSLAdapter):
request.url = urlparse.urlunparse(parse)
try:
ret = super(CipherSuiteAdapter, self).send(request, **kwargs)
if 400 <= ret.status_code < 500:
raise Exception
except Exception as e:
logger.info('Request for ' + domain + ' with ip ' + ip + ' failed')
logger.info(e)