mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Merge pull request #1398 from internetee/remove-monkey-patch
Remove monkey patch of `rack` gem.
This commit is contained in:
commit
0893d5b6f2
2 changed files with 0 additions and 16 deletions
|
@ -50,10 +50,6 @@ webclient_cert_common_name: 'webclient'
|
||||||
# and returns 2306 "Parameter value policy error"
|
# and returns 2306 "Parameter value policy error"
|
||||||
contact_org_enabled: 'false'
|
contact_org_enabled: 'false'
|
||||||
|
|
||||||
# Overwrite rack default trusted proxies list in order to
|
|
||||||
# enable test external interfaces EPP/REPP from webserver network
|
|
||||||
# eis_trusted_proxies: '1.1.1.1,2.2.2.2' #ips, separated with commas
|
|
||||||
|
|
||||||
# Enable iptables counter updater
|
# Enable iptables counter updater
|
||||||
# iptables_counter_enabled: 'true'
|
# iptables_counter_enabled: 'true'
|
||||||
# iptables_server_ip: '127.0.0.1'
|
# iptables_server_ip: '127.0.0.1'
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
# EIS custom rack hack in order to enable test external interfaces EPP/REPP inside webserver network
|
|
||||||
module Rack
|
|
||||||
class Request
|
|
||||||
def trusted_proxy?(ip)
|
|
||||||
if ENV['eis_trusted_proxies']
|
|
||||||
ENV['eis_trusted_proxies'].split(',').map(&:strip).include?(ip)
|
|
||||||
else
|
|
||||||
ip =~ /\A127\.0\.0\.1\Z|\A(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.|\A::1\Z|\Afd[0-9a-f]{2}:.+|\Alocalhost\Z|\Aunix\Z|\Aunix:/i
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue