Commit 2bd84f92 authored by Alexandre's avatar Alexandre
Browse files

Use more explicit variable name

parent 374c47c3
......@@ -384,7 +384,7 @@ class RequestDoH(Request):
class Connection:
def __init__(self, server, servername=None, connect=None, forceIPv4=False, forceIPv6=False,
def __init__(self, server, servername=None, connect_to=None, forceIPv4=False, forceIPv6=False,
dot=False, verbose=False, debug=False, insecure=False):
if dot and not is_valid_hostname(server):
......@@ -408,7 +408,7 @@ class Connection:
self.insecure = insecure
self.forceIPv4 = forceIPv4
self.forceIPv6 = forceIPv6
self.connect_to = connect
self.connect_to = connect_to
def __str__(self):
return self.server
......@@ -421,7 +421,8 @@ class Connection:
class ConnectionDoT(Connection):
def __init__(self, server, servername=None, connect=None, forceIPv4=False, forceIPv6=False,
pipelining=False, verbose=False, debug=False, insecure=False):
Connection.__init__(self, server, servername=servername, connect=connect,
Connection.__init__(self, server, servername=servername, connect_to=connect,
forceIPv4=forceIPv4, forceIPv6=forceIPv6, dot=True,
verbose=verbose, debug=debug, insecure=insecure)
if connect is not None:
......@@ -660,7 +661,7 @@ def create_handle(connection):
class ConnectionDoH(Connection):
def __init__(self, server, servername=None, connect=None, forceIPv4=False, forceIPv6=False,
multistreams=False, verbose=False, debug=False, insecure=False):
Connection.__init__(self, server, servername=servername, connect=connect,
Connection.__init__(self, server, servername=servername, connect_to=connect,
forceIPv4=forceIPv4, forceIPv6=forceIPv6, dot=False,
verbose=verbose, debug=debug, insecure=insecure)
self.url = server
......
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