mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 08:10:49 +08:00
add is_seed_box to peers
This commit is contained in:
@@ -138,12 +138,20 @@ class SeedBoxRepository extends BaseRepository
|
||||
}
|
||||
foreach (Arr::wrap($ipArr) as $ip) {
|
||||
if ((isIPV4($ip) || isIPV6($ip)) && $enableSeedBox && isIPSeedBox($ip, $uid)) {
|
||||
return '<img src="pic/misc/seed-box.png" style="vertical-align: bottom; height: 16px; margin-left: 4px" title="SeedBox" />';
|
||||
return $this->getSeedBoxIcon();
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getSeedBoxIcon($isSeedBox = true): string
|
||||
{
|
||||
if (!$isSeedBox) {
|
||||
return '';
|
||||
}
|
||||
return '<img src="pic/misc/seed-box.png" style="vertical-align: bottom; height: 16px; margin-left: 4px" title="SeedBox" />';
|
||||
}
|
||||
|
||||
private function clearCache()
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user