Raise Mastodon::HostValidationError when host for HTTP request is private (#6410)
This commit is contained in:
committed by
Eugen Rochko
parent
7cb49eaa3a
commit
2e8a492e88
@ -85,3 +85,9 @@ Rails.application.configure do
|
||||
end
|
||||
|
||||
ActiveRecordQueryTrace.enabled = ENV.fetch('QUERY_TRACE_ENABLED') { false }
|
||||
|
||||
module PrivateAddressCheck
|
||||
def self.private_address?(*)
|
||||
false
|
||||
end
|
||||
end
|
||||
|
@ -9,6 +9,10 @@ end
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
config.redis = redis_params
|
||||
|
||||
config.server_middleware do |chain|
|
||||
chain.add SidekiqErrorHandler
|
||||
end
|
||||
end
|
||||
|
||||
Sidekiq.configure_client do |config|
|
||||
|
Reference in New Issue
Block a user