mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-19 07:27:07 +00:00
Fix issue with Maxmind not returning properly on listener report.
This commit is contained in:
parent
75c3672e25
commit
e16c56e466
|
@ -117,11 +117,13 @@ class ListenersController
|
|||
|
||||
if (empty($ip_info)) {
|
||||
return [
|
||||
'success' => false,
|
||||
'message' => 'Internal/Reserved IP',
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'success' => true,
|
||||
'region' => $this->_getLocalizedString($ip_info['subdivisions'][0]['names'] ?? null, $locale),
|
||||
'country' => $this->_getLocalizedString($ip_info['country']['names'] ?? null, $locale),
|
||||
'message' => 'This product includes GeoLite2 data created by MaxMind, available from <a href="http://www.maxmind.com">http://www.maxmind.com</a>.',
|
||||
|
|
Loading…
Reference in New Issue
Block a user