Fix `tootctl accounts cull` crashing when encountering a domain resolving to a private address (#23378)

th-downstream
Claire 2 years ago committed by GitHub
parent e964406ec3
commit 6d57b317bc

@ -353,7 +353,7 @@ module Mastodon
begin begin
code = Request.new(:head, account.uri).perform(&:code) 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 skip_domains << account.domain
end end

Loading…
Cancel
Save