From 4ca0dc848f239da2ce3574a1bd240caf458c39f7 Mon Sep 17 00:00:00 2001 From: tanfarming Date: Wed, 22 Nov 2023 12:42:40 -0500 Subject: [PATCH] word --- lib/ret/http_utils.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ret/http_utils.ex b/lib/ret/http_utils.ex index e5c7ad5f4..5cc9e204d 100644 --- a/lib/ret/http_utils.ex +++ b/lib/ret/http_utils.ex @@ -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