GyulyVGC / sniffnet

Comfortably monitor your Internet traffic 🕵️‍♂️
https://sniffnet.net
Apache License 2.0
18.63k stars 558 forks source link

Add support for IPinfo MMDB format #558

Closed GyulyVGC closed 4 months ago

GyulyVGC commented 4 months ago

This PR adds support for IPinfo MMDB database format as described in #533.

Now both the "standard" MMDB files and IPinfo's ones can be successfully imported and used with Sniffnet.

This was achieved introducing new enums whose variants correspond to the possible different representations of database entries. In this way, the result of the lookup against the MMDB file will be deserialised to the proper enum variant.

Fixes #533.