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

pull/24641/head
Claire 2023-05-02 15:10:09 +02:00 committed by GitHub
parent b233da5996
commit 1ed0ff30d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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