From 6bba8d47e0067bedd67c76dee85425188c7f2688 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Date: Sat, 16 Mar 2024 15:43:04 +0000 Subject: [PATCH] Docs: fix Elixir example of `ssl:connect/4` --- CHANGELOG.md | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6652a6..f8a4f10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - module with bundled CAs to latest as of 2024/03/11, 15:25 UTC (source: https://curl.se/ca/cacert.pem) +### Fixed + +- Elixir example of how to use `tls_certificate_check` with `ssl:connect/4` +(thanks https://github.com/macifell) + ## [1.21.0] - 2023-12-12 ### Added diff --git a/README.md b/README.md index 044bc3b..1c9b7c7 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ mix.exs ``` elixir host = "example.com" options = :tls_certificate_check.options(host) -:ssl.connect(host, 443, options, 5000) +host |> String.to_charlist() |> :ssl.connect(443, options, 5000) ``` ### Advanced Usage