Commit 9e64c19d authored by Alexandre's avatar Alexandre
Browse files

Fix rtype / qtype argument calls

parent cf1d18f4
......@@ -323,7 +323,7 @@ class RequestDoT(Request):
class RequestDoH(Request):
def __init__(self, qname, qtype=rtype, use_edns=edns, want_dnssec=dnssec):
Request.__init__(self, qname, qtype=rtype, use_edns=edns, want_dnssec=dnssec)
Request.__init__(self, qname, qtype=qtype, use_edns=edns, want_dnssec=dnssec)
self.message.id = 0 # DoH requests that
self.post = False
self.head = False
......@@ -820,9 +820,9 @@ def print_result(connection, request, prefix=None, display_err=True):
def create_request(qname, qtype=rtype, use_edns=edns, want_dnssec=dnssec, dot=dot, trunc=False):
if dot:
request = RequestDoT(qname, rtype, use_edns, want_dnssec)
request = RequestDoT(qname, qtype, use_edns, want_dnssec)
else:
request = RequestDoH(qname, rtype, use_edns, want_dnssec)
request = RequestDoH(qname, qtype, use_edns, want_dnssec)
if trunc:
request.trunc_data()
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment