3 lines
168 B
Ruby
3 lines
168 B
Ruby
Rails.application.config.action_dispatch.trusted_proxies = (
|
|
[ '127.0.0.1', '::1' ] + Array(Gitlab.config.gitlab.trusted_proxies)
|
|
).map { |proxy| IPAddr.new(proxy) }
|