From e1536cfd54440f638ed279da8b290f7127c467c0 Mon Sep 17 00:00:00 2001 From: Vincent Prigent Date: Mon, 1 Sep 2025 09:48:46 +1200 Subject: [PATCH] Only enforce ssl on port 443 Let us use the gem locally without needing a proxy or ssl setup --- CHANGELOG.md | 4 ++++ lib/addressfinder/http.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9df754..ec8c30b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Unreleased (September 2025) # + +* Don't enforce ssl as part of Net::HTTP configuration + # Addressfinder 1.15.0 (March 2025) # * Automatically skip empty strings within Batch verification diff --git a/lib/addressfinder/http.rb b/lib/addressfinder/http.rb index c53eb3a..7a77602 100644 --- a/lib/addressfinder/http.rb +++ b/lib/addressfinder/http.rb @@ -64,9 +64,9 @@ def net_http config.proxy_password) http.open_timeout = config.timeout http.read_timeout = config.timeout - http.use_ssl = true + http.use_ssl = config.port == 443 http end end end -end \ No newline at end of file +end