Update error message for invalid IP and port format to clarify ipv6 #20165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hint how to format the ipv6 address on the command line
Purpose:
It is not entirely clear what the proper method of handing an ipv6:port is on the command line. Extending this error message gives the user a solid hint on how to do it appropriately. Also updated the v4 example to hint the correct port of 8444 since that's what most nodes are on.
Current Behavior:
Everything works as expected, but it's hard to find documentation re ipv6
New Behavior:
Error message explains both ipv4 and ipv6
Testing Notes:
Manually tested that the ipv6 address is being correctly parsed by urlsplit(). The example v6 address is currently node.chia.net. Also manually confirmed that my ipv6 farm could add my other ipv6 farm in [ipv6]:8444 form.