You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This API throws exceptions on private IPs and other IPs not in the database, as documented. This is the intended behavior. If you do not want this behavior, please consider using MaxMind\Db\Reader directly instead.
Affects: Torann/laravel-geoip#55
Error:
The address ::1 is not in the database.
I haven't seen any from 127.0.0.1 (IPv4), but GeoIP2 fills up logs very quickly with the above error and stack trace when the error is thrown (discovered by rap2hpoutre/laravel-log-viewer) at https://github.com/maxmind/GeoIP2-php/blob/master/src/Database/Reader.php#L220-L224
Consider adding the following (or a similar implementation) to skip database check if the IP is private:
Source: https://arjunphp.com/check-if-an-ip-address-is-private-with-php/
The text was updated successfully, but these errors were encountered: