Browse Source

add public peers info

yggdrasil-0.4.7
ghost 10 months ago
parent
commit
9cf3003507
  1. 7
      src/config/app.php.example
  2. 10
      src/public/search.php

7
src/config/app.php.example

@ -71,5 +71,12 @@ define('WEBSITE_PEER_REMOTE_PAGINATION_LIMIT', 20); @@ -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);

10
src/public/search.php

@ -239,7 +239,15 @@ $results = $sphinx->searchPeers($requestQuery, @@ -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 } ?>

Loading…
Cancel
Save