wafris 0.3.2 → 0.3.4

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: f40d28c339b6167ef558a03145a20477a55779246ac7d52bcd058e7baa63fb2a
4
- data.tar.gz: 5043bc5116442c5889baaa059f55b949f66e028c263ae03e61d4484a02d722e7
3
+ metadata.gz: 9d08e6bc790149297be28619d16926fe92a888a96f3d2c539e13fa137cc090c8
4
+ data.tar.gz: 2878d2b3c3c13c5fcb18172c9be95628eb6cd19550128b14d6c05695db797311
5
5
  SHA512:
6
- metadata.gz: 578e7d857281b21993cc02b80c870df50500942b44530a1ce1506e423d3f0a00229841af9e127e7ab2984c1f523b526c3dc77ab6db45215429bb9362ab568b0b
7
- data.tar.gz: ff68250d17e420f1601928950a9a91c24f5029ab739ff2f668818d1db4cfb56e9f4d400c3901b9a9a7437848e055b929d5170ad12486a02f4bfa58cd1620366b
6
+ metadata.gz: 9ae7765eb0bf83792fab51c1ece7f0425063a52d3bc428b505febd3ff2bbfd876885f6e78bee6c889883e1fa721a3293190186039877f9f6f45abdff24f36412
7
+ data.tar.gz: c678de6b3502b636bbd5252d64cf78520084fcc0fc52f0fbf2ae017f33b7e3558b1476abee4e5db303f2d35f1d77ceace8a68b37467b2b83ace28567073f8438
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wafris
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.4"
5
5
  end
data/lib/wafris.rb CHANGED
@@ -61,13 +61,13 @@ module Wafris
61
61
  def client_ip(request)
62
62
  return request.ip if request.get_header(Rack::Request::HTTP_X_FORWARDED_FOR).nil?
63
63
 
64
- request.headers[Rack::Request::HTTP_X_FORWARDED_FOR].split(',').first
64
+ request.get_header(Rack::Request::HTTP_X_FORWARDED_FOR).split(',').first
65
65
  end
66
66
 
67
67
  def proxy_ip(request)
68
68
  return nil if request.get_header(Rack::Request::HTTP_X_FORWARDED_FOR).nil?
69
69
 
70
- request.headers[Rack::Request::HTTP_X_FORWARDED_FOR].split(',').last
70
+ request.get_header(Rack::Request::HTTP_X_FORWARDED_FOR).split(',').last
71
71
  end
72
72
  end
73
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wafris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micahel Buckbee