mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-05 08:24:18 +00:00
Update dbip-country-lite.mmdb
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
# About
|
||||
|
||||
`dbip-country-lite.mmdb` is provided by [dbip][dbip] under a
|
||||
[ Creative Commons Attribution 4.0 International License][cc].
|
||||
|
||||
[dbip]: https://db-ip.com/db/lite.php
|
||||
[cc]: http://creativecommons.org/licenses/by/4.0/
|
||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
# About
|
||||
|
||||
## Credit
|
||||
|
||||
`senders.sqlite` contains information from [dmarc.io][dmarc.io] that is licensed under a
|
||||
[Creative Commons Attribution-ShareAlike 4.0 International License][cc].
|
||||
|
||||
## License
|
||||
|
||||
`senders.sqlite` is licensed under a
|
||||
[Creative Commons Attribution-ShareAlike 4.0 International License][cc].
|
||||
|
||||
[dmarc.io]: https://dmarc.io/
|
||||
[cc]: https://creativecommons.org/licenses/by-sa/4.0/
|
||||
+2
-2
@@ -31,7 +31,7 @@ import geoip2.errors
|
||||
import publicsuffixlist
|
||||
|
||||
from parsedmarc.log import logger
|
||||
import parsedmarc.resources
|
||||
import parsedmarc.resources.dbip
|
||||
|
||||
|
||||
parenthesis_regex = re.compile(r'\s*\(.*\)\s*')
|
||||
@@ -272,7 +272,7 @@ def get_ip_address_country(ip_address, db_path=None):
|
||||
break
|
||||
|
||||
if db_path is None:
|
||||
with pkg_resources.path(parsedmarc.resources,
|
||||
with pkg_resources.path(parsedmarc.resources.dbip,
|
||||
"dbip-country-lite.mmdb") as path:
|
||||
db_path = path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user