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

How to configure ipv6 in socket_options ? #182

Closed
iagocavalcante opened this issue May 18, 2024 · 2 comments
Closed

How to configure ipv6 in socket_options ? #182

iagocavalcante opened this issue May 18, 2024 · 2 comments

Comments

@iagocavalcante
Copy link
Contributor

Found this issue when I try to deploy an Elixir/Phoenix API using MyXQL in a mysql database already in use for others APIs at fly. So I have some issues when deploy and I guess it because the socket_options used in the runtime.

I clone this repo and made some tests, I can connect without socket_options locally but when I try to configure it I see some errors, first one is related to expected a keyword:

{:ok, pid} = MyXQL.start_link(username: "root", password: "testpassword", hostname: "localhost", port: 3306, socket_options: [:inet6])

Captura de tela de 2024-05-18 11-31-04

Then I tried put [inet6: :inet6] and thats the output:

Captura de tela de 2024-05-18 11-32-22

Im trying to figure out how to connect using ipv6 with MyXQL, without socket_options works as expected

@josevalim
Copy link
Member

Yeah, socket_options is not a keyword, so we should concat instead of merging.

@wojtekmach
Copy link
Member

Fixed in #183.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants