From 1ed0ff30d3a3515a3cc05541946aa019a57278ad Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 2 May 2023 15:10:09 +0200 Subject: [PATCH] Fix `tootctl accounts cull` crashing when encountering a domain resolving to a private address (#23378) --- lib/mastodon/accounts_cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb index 43269334a..db0565730 100644 --- a/lib/mastodon/accounts_cli.rb +++ b/lib/mastodon/accounts_cli.rb @@ -353,7 +353,7 @@ module Mastodon begin code = Request.new(:head, account.uri).perform(&:code) - rescue HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError + rescue HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError, Mastodon::PrivateNetworkAddressError skip_domains << account.domain end