Skip to content
Snippets Groups Projects
Unverified Commit 1ed0ff30 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix `tootctl accounts cull` crashing when encountering a domain resolving to a...

Fix `tootctl accounts cull` crashing when encountering a domain resolving to a private address (#23378)
parent b233da59
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment