mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Respond with loopback if peer list is empty (#933)
Respond with loopback if peers list is empty
This commit is contained in:
parent
c6fe4241e3
commit
ea70734a9d
2 changed files with 5 additions and 1 deletions
|
@ -369,6 +369,10 @@ if (!$output) {
|
|||
LIMIT $numwant
|
||||
");
|
||||
|
||||
if (empty($rowset)) {
|
||||
$rowset[] = ['ip' => $ip, 'port' => $port];
|
||||
}
|
||||
|
||||
if ($compact_mode) {
|
||||
$peers = '';
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ $bb_cfg['cache'] = [
|
|||
'redis' => [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'pconnect' => PHP_ZTS ? false : true,
|
||||
'pconnect' => !PHP_ZTS,
|
||||
'con_required' => true,
|
||||
],
|
||||
// Available cache types: filecache, memcache, sqlite, redis, apcu (filecache by default)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue