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

Fix mysql connection string #21

Merged

Conversation

DasSkelett
Copy link
Member

This is a cherry-pick of Place1#135 fixing issue Place1#134

It has been slightly changed from @nox-404's solution, using url.Host instead of url.Hostname() and url.Port() joined separately, as the second one would cause issues with raw IPv6 addresses (which url.Hostname() returns without enclosing brackets). url.Host returns host and port already combined, with brackets for IPv6 addresses.

Co-authored-by: DasSkelett <[email protected]>
Co-authored-by: GoliathLabs <[email protected]>
@DasSkelett DasSkelett added the bug Something isn't working label Nov 18, 2021
@GoliathLabs
Copy link
Member

LGTM!

@DasSkelett DasSkelett merged commit 4bc2229 into freifunkMUC:master Nov 18, 2021
@DasSkelett DasSkelett deleted the fix/mysql-conenction-string branch November 18, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants