1
0

allowed_private_addresses.rb 204 B

12345
  1. # frozen_string_literal: true
  2. Rails.application.configure do
  3. config.x.private_address_exceptions = (ENV['ALLOWED_PRIVATE_ADDRESSES'] || '').split(/(?:\s*,\s*|\s+)/).map { |addr| IPAddr.new(addr) }
  4. end