Skip to content

Commit ada6522

Browse files
committed
Revert.
1 parent 18e8850 commit ada6522

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

mocket/socket.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,7 @@ def true_sendall(self, data: bytes, *args: Any, **kwargs: Any) -> bytes:
308308
if record is not None:
309309
return record.response
310310

311-
try:
312-
host, port = self._address
313-
except TypeError:
314-
host = self._host
315-
port = self._port
316-
self._address = (host, port)
317-
311+
host, port = self._address
318312
host = true_gethostbyname(host)
319313

320314
with contextlib.suppress(OSError, ValueError):

0 commit comments

Comments
 (0)