mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.25k stars 1.12k forks source link

Switch IP2Country lookup backend to shortened version #5886

Closed Thomas2500 closed 4 weeks ago

Thomas2500 commented 1 month ago

Hello!

Since the mailcow project only uses the short country function to display the country flag of the source IP, the new backend https://dfdata.bella.network/country/<IP/Domain> can be used. The lookup has been significantly accelerated and has now dropped from 700ms to 100ms on average. Repeated requests are cached so that the search time is now only a few milliseconds.

This should improve the lookup speed mentioned in #5880.

Best regards, Thomas

milkmaker commented 1 month ago

Thanks for contributing!

I noticed that you didn't select staging as your base branch. Please change the base branch to staging. See the attached picture on how to change the base branch to staging:

check_prs_if_on_staging.png