~cytrogen/masto-fe

1ed0ff30d3a3515a3cc05541946aa019a57278ad — Claire 2 years ago b233da5
Fix `tootctl accounts cull` crashing when encountering a domain resolving to a private address (#23378)

1 files changed, 1 insertions(+), 1 deletions(-)

M lib/mastodon/accounts_cli.rb
M lib/mastodon/accounts_cli.rb => lib/mastodon/accounts_cli.rb +1 -1
@@ 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