mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
fix(peers list): IPv6
showing (#1902)
* fix(peers list): `IPv6` showing * Update functions.php
This commit is contained in:
parent
6e0786bdee
commit
4b7203f8ae
2 changed files with 9 additions and 4 deletions
|
@ -383,7 +383,9 @@ if ($tor_reged && $tor_info) {
|
|||
// Full details mode
|
||||
if ($s_mode == 'full') {
|
||||
if (!empty($peer['ip']) && !empty($peer['ipv6'])) {
|
||||
$ip = bt_show_ip($peer['ipv6']) . ' (' . bt_show_ip($peer['ip']) . ')';
|
||||
if ($ip = bt_show_ip($peer['ipv6'])) {
|
||||
$ip .= ' (' . bt_show_ip($peer['ip']) . ')';
|
||||
}
|
||||
} else {
|
||||
$ip = bt_show_ip(!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']);
|
||||
}
|
||||
|
@ -492,7 +494,10 @@ if ($tor_reged && $tor_info) {
|
|||
]);
|
||||
|
||||
if ($ip) {
|
||||
$template->assign_block_vars("$x_full.$x_row.ip", ['IP' => $ip]);
|
||||
$template->assign_block_vars("$x_full.$x_row.ip", [
|
||||
'U_WHOIS_IP' => $bb_cfg['whois_info'] . $ip,
|
||||
'IP' => $ip
|
||||
]);
|
||||
}
|
||||
if ($port !== false) {
|
||||
$template->assign_block_vars("$x_full.$x_row.port", ['PORT' => $port]);
|
||||
|
|
|
@ -167,7 +167,7 @@ ajax.callback.callseed = function (data) {
|
|||
<td class="seedmed"><u>{sfull.srow.SPEED_UP_RAW}</u>{sfull.srow.SPEED_UP}</td>
|
||||
<td class="leechmed"><u>{sfull.srow.SPEED_DOWN_RAW}</u>{sfull.srow.SPEED_DOWN}</td>
|
||||
<!-- BEGIN ip -->
|
||||
<td>{sfull.srow.ip.IP}</td>
|
||||
<td><a href="{sfull.srow.ip.U_WHOIS_IP}" target="_blank">{sfull.srow.ip.IP}</a></td>
|
||||
<!-- END ip -->
|
||||
<!-- BEGIN port -->
|
||||
<td>{sfull.srow.port.PORT}</td>
|
||||
|
@ -220,7 +220,7 @@ ajax.callback.callseed = function (data) {
|
|||
<td class="seedmed"><u>{lfull.lrow.SPEED_UP_RAW}</u>{lfull.lrow.SPEED_UP}</td>
|
||||
<td class="leechmed"><u>{lfull.lrow.SPEED_DOWN_RAW}</u>{lfull.lrow.SPEED_DOWN}</td>
|
||||
<!-- BEGIN ip -->
|
||||
<td>{lfull.lrow.ip.IP}</td>
|
||||
<td><a href="{lfull.lrow.ip.U_WHOIS_IP}" target="_blank">{lfull.lrow.ip.IP}</a></td>
|
||||
<!-- END ip -->
|
||||
<!-- BEGIN port -->
|
||||
<td>{lfull.lrow.port.PORT}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue