mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
fix(ip-api): Add error handling and logging for freeipapi.com requests (#2006)
This commit is contained in:
parent
8c161ceae0
commit
12ce6e783e
2 changed files with 19 additions and 10 deletions
|
@ -475,6 +475,8 @@ if ($tor_reged && $tor_info) {
|
|||
if ($infoByIP = infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])) {
|
||||
if (!empty($infoByIP['countryCode'])) {
|
||||
$peerCountry = render_flag($infoByIP['countryCode'], false);
|
||||
} else {
|
||||
$peerCountry = $lang['NOT_AVAILABLE'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue