mirror of https://github.com/mastodon/mastodon
Move `ALLOWED_PRIVATE_ADDRESSES` parsing to an initializer (#32850)
parent
32e5e1d3f1
commit
f5f6273d2b
@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Rails.application.configure do
|
||||
config.x.private_address_exceptions = (ENV['ALLOWED_PRIVATE_ADDRESSES'] || '').split(/(?:\s*,\s*|\s+)/).map { |addr| IPAddr.new(addr) }
|
||||
end
|
Loading…
Reference in New Issue