diff options
author | lilydjwg <lilydjwg@gmail.com> | 2016-03-15 21:27:25 +0800 |
---|---|---|
committer | lilydjwg <lilydjwg@gmail.com> | 2016-03-15 21:32:06 +0800 |
commit | eecadadce3defaeab955310ad77c874ec9aead5e (patch) | |
tree | e474e26797585586e5fcbcfb2f1c17df0d1a7d55 /netlib | |
parent | 20ec502032cc360132ee2e3de72c66f75de33ad8 (diff) | |
download | mitmproxy-eecadadce3defaeab955310ad77c874ec9aead5e.tar.gz mitmproxy-eecadadce3defaeab955310ad77c874ec9aead5e.tar.bz2 mitmproxy-eecadadce3defaeab955310ad77c874ec9aead5e.zip |
use "peer_address" instead of "sock_address"
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/tcp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index 4d01a03b..574f3845 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -458,11 +458,11 @@ class _Connection(object): def __init__(self, connection): if connection: self.connection = connection - self.sock_address = Address(connection.getpeername()) + self.peer_address = Address(connection.getpeername()) self._makefile() else: self.connection = None - self.sock_address = None + self.peer_address = None self.rfile = None self.wfile = None @@ -703,7 +703,7 @@ class TCPClient(_Connection): 'Error connecting to "%s": %s' % (self.address.host, err)) self.connection = connection - self.sock_address = Address(connection.getpeername()) + self.peer_address = Address(connection.getpeername()) self._makefile() def settimeout(self, n): |