vpndetection-rails 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/vpndetection/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a439a954d6da2deab766b3a646c7d181d272c4fcf05a4b318bd96141714e985a
|
|
4
|
+
data.tar.gz: 1fa171f322413f6ced753b666ddba19b60b1c91e06258051faa738c6e8cc8813
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4b294953af36c1651476dfbfe5f0ac3eb4cd1c3916a7f6da716c0a50ca2544f903f5b2c6c5525571fa2777a0da7d162e85ae59379aea546b66fde92b5c34294
|
|
7
|
+
data.tar.gz: aaeaa438d7bc42c7567b2ca7da0541fe3e7da16c73413e745427a887d73e8a8d3f883330a5f6d7749ad0b7cc17149f06715d5f3cee400fbfd567826d4590b6ec
|
data/README.md
CHANGED
|
@@ -90,10 +90,10 @@ The request is let through, and the reason is on `lookup.error`. Our outage shou
|
|
|
90
90
|
|
|
91
91
|
Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried — on a request path, failing open quickly beats holding a visitor while we try again.
|
|
92
92
|
|
|
93
|
-
Skip
|
|
93
|
+
Files in `public/`, compiled assets included, never reach the middleware: `ActionDispatch::Static` answers them first, so they cost no lookup. Skip the routes you do not care about:
|
|
94
94
|
|
|
95
95
|
```ruby
|
|
96
|
-
skip: ->(request) { request.path.start_with?("/
|
|
96
|
+
skip: ->(request) { request.path == "/up" || request.path.start_with?("/webhooks") }
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
Beyond a few million distinct visitors a day, stop calling the API per request: [download the dataset](https://vpndetection.io/#databases) and look addresses up locally instead.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vpndetection-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mslm Dev
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 5.
|
|
32
|
+
version: 5.7.0
|
|
33
33
|
- - "<"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
35
|
version: '6'
|
|
@@ -39,7 +39,7 @@ dependencies:
|
|
|
39
39
|
requirements:
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 5.
|
|
42
|
+
version: 5.7.0
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '6'
|