Pass trusted_proxies to action_dispatch as IPAddrs instead of strings
Without this setting your own trusted_proxies does not work.
This commit is contained in:
parent
973b948b9e
commit
9ab70184e3
1 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
Rails.application.config.action_dispatch.trusted_proxies =
|
||||
Rails.application.config.action_dispatch.trusted_proxies = (
|
||||
[ '127.0.0.1', '::1' ] + Array(Gitlab.config.gitlab.trusted_proxies)
|
||||
).map { |proxy| IPAddr.new(proxy) }
|
||||
|
|
Loading…
Reference in a new issue