Skip to content

Conversation

shlomi-noach
Copy link
Contributor

Fixed #604

This PR correctly parses ipv6 addresses. The following are valid:

  • 0:0:0:0:0:0:0:0
  • ::1
  • 2001:db8:1f70::999:de8:7648:6e8
  • [2001:db8:1f70::999:de8:7648:6e8]:3306

cc @Roguelazer

@Roguelazer
Copy link
Contributor

I tested this in our staging environment and it seemed to work correctly.

@shlomi-noach
Copy link
Contributor Author

shlomi-noach commented Sep 20, 2018

@Roguelazer thank you. It's a bit of a hack-ish solution, but it should suffice for gh-ost.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_role=ghost_testing October 2, 2018 05:12 Inactive
@github github deleted a comment Jan 1, 2019
@timvaillancourt timvaillancourt temporarily deployed to production/mysql_role=ghost_testing October 22, 2020 10:18 Inactive
@timvaillancourt
Copy link
Collaborator

timvaillancourt commented Oct 23, 2020

This is passing internal tests using IPV4 addresses, meaning I can confirm it doesn't break existing use cases

I tested this in our staging environment and it seemed to work correctly.

Considering the IPV6 side tested by @Roguelazer here

Thanks @shlomi-noach and @Roguelazer!

@timvaillancourt timvaillancourt merged commit e99b915 into master Oct 23, 2020
@timvaillancourt timvaillancourt deleted the ipv6 branch October 23, 2020 10:11
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.

-assume-master-host doesn't work with IPv6 literals
3 participants