Fix #230 HSTS bypass DNS problem when timeout occures

This commit is contained in:
HAMIDx9 2016-01-29 01:43:45 +03:30
parent f8293c38c9
commit 96e0b5f0e0

View file

@ -366,7 +366,8 @@ class DNSHandler():
#First proxy the request with the real domain
q = DNSRecord.question(real_domain).pack()
r = self.proxyrequest(q, *nameserver_tuple)
if r is None: return None
#Parse the answer
dns_rr = DNSRecord.parse(r).rr