add public peers info

This commit is contained in:
ghost 2023-08-24 11:47:18 +03:00
parent 228c8fc82f
commit 9cf3003507
2 changed files with 16 additions and 1 deletions

View File

@ -71,5 +71,12 @@ define('WEBSITE_PEER_REMOTE_PAGINATION_LIMIT', 20);
define('WEBSITE_PEER_PORT_CHECK_TIMEOUT', 60 * 5);
// Trackers
define('TRACKER_PUBLIC_PEERS', (object)
[
'tls://94.140.114.241:4708',
// ...
]);
// Crawler
define('CRAWL_STOP_DISK_QUOTA_MB_LEFT', 128);

View File

@ -239,7 +239,15 @@ $results = $sphinx->searchPeers($requestQuery,
<?php } else { ?>
<tfoot>
<tr>
<td class="text-center"><?php echo _('Results not found') ?></td>
<td class="text-center">
<div class="margin-y-8"><?php echo _('not found') ?><div>
<?php if (TRACKER_PUBLIC_PEERS) { ?>
<div class="margin-y-8"><?php echo _('get yourself tracked by connection') ?><div>
<?php foreach (TRACKER_PUBLIC_PEERS as $address) { ?>
<div class="margin-y-8"><?php echo $address ?><div>
<?php } ?>
<?php } ?>
</td>
</tr>
</tfoot>
<?php } ?>