sentry-ruby-core 4.6.0 → 4.6.1

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: cfe5056c156c748700100bc8c0a08188547f04ef0c09d7ee7653c084407e294e
4
- data.tar.gz: 63562591edc3eb48be9e0cf22ab17a3787a5ee91784978252dd67dd050128abe
3
+ metadata.gz: efdd71de2f9ada8f2c3bbffd41df8edfed7847c7b93390f2ce64a588094bc3d3
4
+ data.tar.gz: bdb0b838f35d1fc87c85eb63caf23e48d8234819935f2c80721cc28ec2f53fc8
5
5
  SHA512:
6
- metadata.gz: 777e2a93032b22c039dec36aa8eb859de7169a0cb438d3204bb7620a0e290ff8a4b747c196ff093008d2fe61f066cf6368d8bddda2fba9e7127ec4985ca1968a
7
- data.tar.gz: 35bb4ff5ab8d01fbd1d2882b2e3f0382a24248bca2e3b3a2be80a2e80c8fea6d5e10316b9c8962407e43f72a84cae3f201c8dadf4f80526cd584d9c238aa47a1
6
+ metadata.gz: 232f4e625023091167191a733fc5366017eb2212e94ffe939d2b48a3a42956866df2f6b503f5d8103d7246df955f1a203776cccc6537bd5039059ba4832370e3
7
+ data.tar.gz: 0cac44f1407e6fd6a93a8fb789b0acefc0f36c9bc33899b149567c0dee91d677b469e7099752361d9b2227d6d76a40db8e1234901f12aed3c8407e7c30470091
@@ -29,7 +29,13 @@ module Sentry
29
29
  @client_ip = client_ip
30
30
  @real_ip = real_ip
31
31
  @forwarded_for = forwarded_for
32
- @trusted_proxies = (LOCAL_ADDRESSES + Array(trusted_proxies)).map { |proxy| IPAddr.new(proxy.to_s) }.uniq
32
+ @trusted_proxies = (LOCAL_ADDRESSES + Array(trusted_proxies)).map do |proxy|
33
+ if proxy.is_a?(IPAddr)
34
+ proxy
35
+ else
36
+ IPAddr.new(proxy.to_s)
37
+ end
38
+ end.uniq
33
39
  end
34
40
 
35
41
  def calculate_ip
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "4.6.0"
2
+ VERSION = "4.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday