Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed socket address parsing for IPv6 #1806

Merged
merged 3 commits into from
Aug 14, 2022
Merged

Fixed socket address parsing for IPv6 #1806

merged 3 commits into from
Aug 14, 2022

Conversation

satsen
Copy link
Contributor

@satsen satsen commented Aug 13, 2022

The previous code was splitting the declaredAddress based on colons. This works with IPv4 socket addresses, but IPv6 socket addresses are formatted like this: [2345:0425:2CA1:0000:0000:0567:5673:23b5]:9030.

There are colons in the IP itself. I changed the code to cut the string based on the last colon.

(No wonder there are no IPv6 nodes found on ergonodes.net, you could not even declare one before this fix..)

satsen added a commit to Satergo/Satergo that referenced this pull request Aug 13, 2022
Note: The Ergo node does not support IPv6 declaredAddress yet, I have submitted a pull request (ergoplatform/ergo#1806)
@kushti kushti changed the base branch from master to v4.0.39 August 14, 2022 19:56
@kushti kushti merged commit f52513b into ergoplatform:v4.0.39 Aug 14, 2022
@kushti kushti mentioned this pull request Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants