Skip to content

Commit

Permalink
fix(socket): append to opts in order to use inet_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveigah committed Jul 26, 2023
1 parent e984bf8 commit 949406a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/klife_protocol/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ defmodule KlifeProtocol.Socket do
def connect(host, port, opts \\ []) do
{backend, opts} = Keyword.pop(opts, :backend, :gen_tcp)
must_have_opts = [:binary, packet: 4]
backend.connect(String.to_charlist(host), port, must_have_opts ++ opts)
backend.connect(String.to_charlist(host), port, opts ++ must_have_opts)
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule KlifeProtocol.MixProject do
def project do
[
app: :klife_protocol,
version: "0.2.0",
version: "0.2.1",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit 949406a

Please sign in to comment.