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 +4 -4
- data/lib/sentry/utils/real_ip.rb +7 -1
- data/lib/sentry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efdd71de2f9ada8f2c3bbffd41df8edfed7847c7b93390f2ce64a588094bc3d3
|
4
|
+
data.tar.gz: bdb0b838f35d1fc87c85eb63caf23e48d8234819935f2c80721cc28ec2f53fc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 232f4e625023091167191a733fc5366017eb2212e94ffe939d2b48a3a42956866df2f6b503f5d8103d7246df955f1a203776cccc6537bd5039059ba4832370e3
|
7
|
+
data.tar.gz: 0cac44f1407e6fd6a93a8fb789b0acefc0f36c9bc33899b149567c0dee91d677b469e7099752361d9b2227d6d76a40db8e1234901f12aed3c8407e7c30470091
|
data/lib/sentry/utils/real_ip.rb
CHANGED
@@ -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
|
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
|
data/lib/sentry/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|