Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yadudoc committed Nov 25, 2024
1 parent 60a2619 commit 68a5742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions parsl/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def get_any_address() -> str:
def tcp_url(address: str, port: Union[str, int, None] = None) -> str:
"""Construct a tcp url safe for IPv4 and IPv6"""
stripped_address = address.strip('[]')
if address == "*":
return "tcp://*"

ip_addr = ipaddress.ip_address(stripped_address)

port_suffix = f":{port}" if port else ""
Expand Down
2 changes: 1 addition & 1 deletion parsl/tests/configs/htex_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def fresh_config():
executors=[
HighThroughputExecutor(
label="htex_local",
loopback_address="::ffff:127.0.0.1",
loopback_address="::1",
worker_debug=True,
cores_per_worker=1,
encrypted=True,
Expand Down

0 comments on commit 68a5742

Please sign in to comment.