Update error message for invalid IP and port format to clarify ipv6 (#20165)

Update error message for invalid IP and port format

Hint how to format the ipv6 address on the command line
This commit is contained in:
Gene Hoffman
2025-10-20 07:49:29 -07:00
committed by GitHub
parent ab0114728c
commit d6f57e055f
+1 -1
View File
@@ -20,7 +20,7 @@ async def add_node_connection(rpc_client: RpcClient, add_connection: str) -> Non
except Exception:
print(f"Failed to connect to {host}:{port}")
except ValueError:
print("Enter a valid IP and port in the following format: 10.5.4.3:8000")
print("Enter a valid IP and port in the following format: 10.5.4.3:8444 or [2606:f6c0:80:5::a]:8444")
async def remove_node_connection(rpc_client: RpcClient, remove_connection: str) -> None: