Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 22, 2023
1 parent 87b70a1 commit 4ca0dc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ret/http_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ defmodule Ret.HttpUtils do
{:ok, results} ->
# TODO We should probably be able to handle ipv6 here too.
results |> Enum.filter(&InetCidr.v4?/1) |> Enum.random()

{:error, reason} ->
IO.puts("failed to DNS.resolve(#{host}): #{reason}")
_ ->
nil
end
Expand Down

0 comments on commit 4ca0dc8

Please sign in to comment.