Upgrade GeoIP functionality & replace the databases (#2471)

* Replaced Maxmind's IP database

* Began rebuilding GeoIP reader functionality

The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.

Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.

(Plus my aim is already to replace the MaxMind DB due to it's licencing)

* Created an IP address lookup page

* + ASN info

* Bump last patch

* Make PHPStan happy

* Very minor refactor + PHPDocs
This commit is contained in:
Belle Aerni authored and GitHub committed 2024-10-31 19:31:50 +01:00
1 parent 2b431f8757
commit a5d15c2a99
27 files changed
+526 -210

No files matched your search

@@ -58,7 +58,7 @@
{% endif %}
</td>
<td>{{ event.message }}</td>
<td>{{ event.ip }}</td>
<td>{{ event.ip|iplookup }}</td>
<td>{{ event.ip|ipcountryname|default('Unknown') }}</td>
<td>{{ event.created_at|format_datetime }}</td>
<td>