Skip to content

Commit 73576d2

Browse files
Merge pull request #69 from maxmind/adam/anonymizer-desc
Update descriptions for vpn/hosting provider attributes
2 parents 7aa9b93 + 44bd306 commit 73576d2

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
2.9.1
7+
++++++++++++++++++
8+
9+
* Updated documentation of anonymizer attributes - ``is_anonymous_vpn`` and
10+
``is_hosting_provider`` - to be more descriptive.
11+
612
2.9.0 (2018-05-25)
713
++++++++++++++++++
814

geoip2/models.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,19 @@ class AnonymousIP(SimpleModel):
328328
329329
.. attribute:: is_anonymous_vpn
330330
331-
This is true if the IP address belongs to an anonymous VPN system.
331+
This is true if the IP address is registered to an anonymous VPN
332+
provider.
333+
334+
If a VPN provider does not register subnets under names associated with
335+
them, we will likely only flag their IP ranges using the
336+
``is_hosting_provider`` attribute.
332337
333338
:type: bool
334339
335340
.. attribute:: is_hosting_provider
336341
337-
This is true if the IP address belongs to a hosting provider.
342+
This is true if the IP address belongs to a hosting or VPN provider
343+
(see description of ``is_anonymous_vpn`` attribute).
338344
339345
:type: bool
340346

geoip2/records.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,21 @@ class Traits(Record):
560560
561561
.. attribute:: is_anonymous_vpn
562562
563-
This is true if the IP address belongs to an anonymous VPN system.
563+
This is true if the IP address is registered to an anonymous VPN
564+
provider.
565+
566+
If a VPN provider does not register subnets under names associated with
567+
them, we will likely only flag their IP ranges using the
568+
``is_hosting_provider`` attribute.
569+
564570
This attribute is only available from GeoIP2 Precision Insights.
565571
566572
:type: bool
567573
568574
.. attribute:: is_hosting_provider
569575
570-
This is true if the IP address belongs to a hosting provider.
576+
This is true if the IP address belongs to a hosting or VPN provider
577+
(see description of ``is_anonymous_vpn`` attribute).
571578
This attribute is only available from GeoIP2 Precision Insights.
572579
573580
:type: bool

0 commit comments

Comments
 (0)