Skip to content

Commit

Permalink
Allow string ports in client socket
Browse files Browse the repository at this point in the history
  • Loading branch information
danijar committed Sep 15, 2024
1 parent 5565231 commit 1deb57c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion portal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.2.3'
__version__ = '3.2.4'

import multiprocessing as mp
try:
Expand Down
4 changes: 2 additions & 2 deletions portal/client_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def _connect(self):
host, port = self.addr
if contextlib.context.resolver:
host, port = contextlib.context.resolver((host, port))
assert isinstance(host, str), (host, port)
assert isinstance(port, int), (host, port)
assert isinstance(host, str), (host, port)
port = int(port)
addr = (host, port, 0, 0) if self.options.ipv6 else (host, port)
sock = self._create()
error = None
Expand Down

0 comments on commit 1deb57c

Please sign in to comment.