mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Fix bypassing cache if IP changed while using cache (#1109)
This commit is contained in:
parent
92aebf4035
commit
f61a6d6c8c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ if ($stopped && $lp_info) {
|
||||||
|
|
||||||
// Drop fast announce
|
// Drop fast announce
|
||||||
if ($lp_info && (!isset($event) || !$stopped)) {
|
if ($lp_info && (!isset($event) || !$stopped)) {
|
||||||
if ($lp_info['ip_ver4'] === $ipv4 || $lp_info['ip_ver6'] === $ipv6) {
|
if ($lp_info['ip_ver4'] === $ipv4 || $lp_info['ip_ver6'] === $ipv6 || isset($lp_info['ip_ver4'], $lp_info['ip_ver6'])) {
|
||||||
if ($lp_cached_peers = CACHE('tr_cache')->get(PEERS_LIST_PREFIX . $lp_info['topic_id'])) {
|
if ($lp_cached_peers = CACHE('tr_cache')->get(PEERS_LIST_PREFIX . $lp_info['topic_id'])) {
|
||||||
drop_fast_announce($lp_info, $lp_cached_peers); // Use cache but with new calculated interval and seed, peer count set
|
drop_fast_announce($lp_info, $lp_cached_peers); // Use cache but with new calculated interval and seed, peer count set
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue