How to configure ipv6 in `socket_options` ?
iagocavalcante opened this issue · 2 comments
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])
Then I tried put [inet6: :inet6]
and thats the output:
Im trying to figure out how to connect using ipv6 with MyXQL, without socket_options
works as expected
Yeah, socket_options is not a keyword, so we should concat instead of merging.
Fixed in #183.