mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
refactoring
This commit is contained in:
parent
a87fd6a8b7
commit
ece988fca1
6 changed files with 95 additions and 53 deletions
|
@ -17,7 +17,7 @@ module Api
|
|||
|
||||
private
|
||||
|
||||
def check_ip_whitelist
|
||||
def check_ip_whitelist
|
||||
allowed_ips = ENV['accr_center_api_auth_allowed_ips'].to_s.split(',').map(&:strip)
|
||||
return if allowed_ips.include?(request.ip) || Rails.env.development?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue