From 6d57b317bcc10b2195e167212341fcd6827cc963 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 43269334a5..db0565730e 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