Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-11-18 21:07:28 +07:00
parent 6deeb18019
commit 311d424388

View File

@ -512,11 +512,11 @@ function send_torrent_with_passkey ($filename)
} }
// Add retracker // Add retracker
if (!empty($bb_cfg['tracker']['retracker_host']) && $bb_cfg['tracker']['retracker']) if (!empty($tr_cfg['retracker_host']) && $tr_cfg['retracker'])
{ {
if (bf($userdata['user_opt'], 'user_opt', 'user_retracker') || IS_GUEST) if (bf($userdata['user_opt'], 'user_opt', 'user_retracker') || IS_GUEST)
{ {
$tor['announce-list'] = array_merge((isset($tor['announce-list']) ? $tor['announce-list'] : array()), array(array($bb_cfg['tracker']['retracker_host']))); $tor['announce-list'] = array_merge((isset($tor['announce-list']) ? $tor['announce-list'] : array()), array(array($tr_cfg['retracker_host'])));
} }
} }