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 f96b307 commit 87b70a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/ret/http_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ defmodule Ret.HttpUtils do
end

def resolve_ip(host) do
IO.puts("host #{host}")
try do
InetCidr.parse_address!(host)
rescue
_ ->
IO.puts("not an ip: rescue")
case DNS.resolve(host) do
{:ok, results} ->
# TODO We should probably be able to handle ipv6 here too.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defmodule Ret.Mixfile do
{:download, git: "https://github.com/gfodor/download.git", branch: "reticulum/master"},
{:reverse_proxy_plug, "~> 2.1"},
{:inet_cidr, "~> 1.0"},
{:dns, "~> 2.2.0"},
{:dns, "~> 2.4.0"},
{:oauther, "~> 1.1"},
{:jason, "~> 1.1"},
{:ex_rated, "~> 2.1.0"},
Expand Down

0 comments on commit 87b70a1

Please sign in to comment.