From: Filip Š Date: Tue, 29 Oct 2019 19:57:54 +0000 (+0100) Subject: Ignore URLs other than HTTPS X-Git-Tag: v2.0.0rc1~345^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8f376bf1761666fac7d3f93b5ad8c97c715b52;p=thirdparty%2Fdnspython.git Ignore URLs other than HTTPS --- diff --git a/dns/resolver.py b/dns/resolver.py index 575df4c5..3e2cc0d2 100644 --- a/dns/resolver.py +++ b/dns/resolver.py @@ -910,6 +910,8 @@ class Resolver(object): if protocol == 'https': tcp_attempt = True response = dns.query.https(request, nameserver) + elif protocol: + continue else: tcp_attempt = tcp if tcp: