mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
BEP-7 & BEP-24 & IPv6 functions (#934)
BEP-7 & BEP-24 & IPv6 functions Tracker: Realized support for IPv6 (BEP-7). Realized support for returning external IP address (BEP-24). TorrentPier: IPv6-only users should receive less error messages now.
This commit is contained in:
parent
628a066f91
commit
e05ef75abc
8 changed files with 39 additions and 12 deletions
|
@ -598,7 +598,7 @@ switch ($mode) {
|
|||
bb_die($lang['NO_SUCH_POST']);
|
||||
}
|
||||
|
||||
if (!$ip_this_post = \TorrentPier\Helpers\IPHelper::long2ip($post_row['poster_ip'])) {
|
||||
if (!$ip_this_post = \TorrentPier\Helpers\IPHelper::long2ip_extended($post_row['poster_ip'])) {
|
||||
$ip_this_post = $lang['NOT_AVAILABLE'];
|
||||
}
|
||||
|
||||
|
@ -630,7 +630,7 @@ switch ($mode) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!$ip = \TorrentPier\Helpers\IPHelper::long2ip($row['poster_ip'])) {
|
||||
if (!$ip = \TorrentPier\Helpers\IPHelper::long2ip_extended($row['poster_ip'])) {
|
||||
$ip = $lang['NOT_AVAILABLE'];
|
||||
}
|
||||
$ip = ($rdns_ip_num == $ip || $rdns_ip_num == 'all') ? gethostbyaddr($ip) : $ip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue