Commit c21c7f85 authored by Alexandre's avatar Alexandre
Browse files

Access parent class initialisation with super

parent 3019775f
......@@ -67,7 +67,7 @@ class ConnectionDOT(Connection):
verbose=False, debug=False,
sni=True, key=None, pipelining=False):
Connection.__init__(self, server, servername=servername, connect_to=connect_to,
super().__init__(server, servername=servername, connect_to=connect_to,
forceIPv4=forceIPv4, forceIPv6=forceIPv6, insecure=insecure,
verbose=verbose, debug=debug, dot=True)
......@@ -351,7 +351,7 @@ class ConnectionDOH(Connection):
insecure=False, verbose=False, debug=False,
multistreams=False):
Connection.__init__(self, server, servername=servername, connect_to=connect_to,
super().__init__(server, servername=servername, connect_to=connect_to,
forceIPv4=forceIPv4, forceIPv6=forceIPv6, insecure=insecure,
verbose=verbose, debug=debug, dot=False)
......
......@@ -57,7 +57,7 @@ class RequestDOT(Request):
class RequestDOH(Request):
def __init__(self, qname, qtype='AAAA', use_edns=True, want_dnssec=False, no_ecs=True):
Request.__init__(self, qname, qtype=qtype, use_edns=use_edns, want_dnssec=want_dnssec, no_ecs=no_ecs)
super().__init__(qname, qtype=qtype, use_edns=use_edns, want_dnssec=want_dnssec, no_ecs=no_ecs)
self.message.id = 0 # DoH requests that
self.post = False
self.head = False
......
Supports Markdown
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