From dcfd38bd279ed91f8a77d0240d1da71da1969bf8 Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Sat, 4 May 2024 15:18:52 -0400 Subject: [PATCH] Clean up code --- lib/chronoscope/gemini/connection_client.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/chronoscope/gemini/connection_client.ex b/lib/chronoscope/gemini/connection_client.ex index 6a77ddb..00683ff 100644 --- a/lib/chronoscope/gemini/connection_client.ex +++ b/lib/chronoscope/gemini/connection_client.ex @@ -29,7 +29,7 @@ defmodule Chronoscope.Gemini.ConnectionClient do defp tls_options(host) do host |> :tls_certificate_check.options() - |> Keyword.put(:verify_fun, {verify_fun(host), nil}) + |> Keyword.put(:verify_fun, {verify_fun(host), []}) end defp verify_fun(hostname) do @@ -38,10 +38,8 @@ defmodule Chronoscope.Gemini.ConnectionClient do fn certificate, {:bad_cert, :selfsigned_peer}, _state -> :ssl_verify_hostname.verify_fun(certificate, :valid_peer, check_hostname: hostname_charlist) - {:valid, :selfsigned_peer} certificate, event, _state -> - IO.inspect(event) :ssl_verify_hostname.verify_fun(certificate, event, check_hostname: hostname_charlist) end end