aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 54536b39..9ebe0153 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -255,7 +255,7 @@ class ServerConnection(netlib.TCPClient):
netlib.TCPClient.__init__(
self,
True if scheme == "https" else False,
- host,
+ host,
port,
clientcert
)
@@ -305,7 +305,7 @@ class ServerConnection(netlib.TCPClient):
try:
if not self.wfile.closed:
self.wfile.flush()
- self.sock.close()
+ self.connection.close()
except IOError:
pass