From 96e0b5f0e0bb7e640116cac7591d37a79b3b58f4 Mon Sep 17 00:00:00 2001 From: HAMIDx9 Date: Fri, 29 Jan 2016 01:43:45 +0330 Subject: [PATCH] Fix #230 HSTS bypass DNS problem when timeout occures --- core/servers/DNS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/servers/DNS.py b/core/servers/DNS.py index 35e592c..0599e7b 100755 --- a/core/servers/DNS.py +++ b/core/servers/DNS.py @@ -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