cloudflare-ips 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 180bd3810f61c3efa0ecadc1219691098a39056ad397bc5e820795dc40a0114e
4
- data.tar.gz: 51ba910df0efd66cedaedd4a7d0014b11cca6166ca498731b2d35c89f197f3da
3
+ metadata.gz: f87b9d99a2bc8a676d66ea2ccb7671bcc64c9596d7a8c6d448c106c26bd71dd7
4
+ data.tar.gz: fe3087655a70da8e703144a7d12166be038e46aa54084cd70d3205ed1a8b35da
5
5
  SHA512:
6
- metadata.gz: f37f4d7d77db69ac49817fed7c848e6c1aff2bea644537e33ffc504d3c93939fa974438638216d5ed7a58ce862058a1ad8f34237c8829ced13059aaeba5e5a68
7
- data.tar.gz: 5e1f66b3ec41a9ad753056554a3e75e73782a1377909162c018112b7c5da6635a16841b9e8ee8b591e9cbb84edfe41acb91462dafc039bffa6dfe391ed7166ac
6
+ metadata.gz: bea44615e4bf1614c5963e263a48dba5c2d6f8af6768fb00ece8775b6a496fb442df66a698656c6dddeb8da6303a8ed8b96fe3d990c365edb0a1d006c0738ebc
7
+ data.tar.gz: 31a83b9a50893eaa3567b861e7b3cf33582f1a8493f21d65c70efb2168766549628d2c09c9e556d49f15486a88aed89b87ff6457eb01ea6f2aa37376084158b0
@@ -5,7 +5,7 @@ module Cloudflare
5
5
  # Configure trusted_proxies with Cloudflare IPv4 and IPv6 addresses.
6
6
  class Railtie < ::Rails::Railtie
7
7
  initializer 'cloudflare-ips.configure_rails_initialization' do |app|
8
- app.config.action_dispatch.trusted_proxies += Cloudflare::IPs::IPS_V4 + Cloudflare::IPs::IPS_V6
8
+ app.config.action_dispatch.trusted_proxies = ActionDispatch::RemoteIp::TRUSTED_PROXIES + IPS_V4 + IPS_V6
9
9
  end
10
10
  end
11
11
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cloudflare
4
4
  module IPs
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflare-ips
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre