Simplified IPHelper (#712)

This commit is contained in:
Roman Kelesidis 2023-05-23 22:23:00 +07:00 committed by GitHub
commit d9d38935b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 90 deletions

View file

@ -577,7 +577,7 @@ function bt_show_ip($ip, $port = '')
global $bb_cfg;
if (IS_AM) {
$ip = \TorrentPier\Helpers\IPHelper::decodeIP($ip);
$ip = \TorrentPier\Helpers\IPHelper::long2ip($ip);
$ip .= ($port) ? ":$port" : '';
return $ip;
}