diff --git a/mocket/mocket.py b/mocket/mocket.py index c0a310a3..eeaa98e6 100644 --- a/mocket/mocket.py +++ b/mocket/mocket.py @@ -379,7 +379,7 @@ def true_sendall(self, data, *args, **kwargs): encoded_response = hexload(response_dict["response"]) # if not available, call the real sendall except KeyError: - host, port = Mocket._address + host, port = self._host, self._port host = true_gethostbyname(host) if isinstance(self.true_socket, true_socket) and self._secure_socket: