Skip to content

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.

2 participants