Skip to content

Commit

Permalink
Grab host/port from MocketSocket instance itself instead of a class v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
ento committed Feb 5, 2024
1 parent fcfc0d0 commit 0fce044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocket/mocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0fce044

Please sign in to comment.