mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-06 00:45:21 +00:00
SSD加入辅种计数器(限制每次辅种10个),降低初次辅种过多ban禁IP的可能性。
This commit is contained in:
parent
ffb600c334
commit
005788827d
@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.7.9';
|
const VER = '1.8.1';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
@ -412,6 +412,12 @@ class AutoReseed
|
|||||||
$reseedPass = false;
|
$reseedPass = false;
|
||||||
// 特殊站点:种子元数据推送给下载器
|
// 特殊站点:种子元数据推送给下载器
|
||||||
switch ($siteName) {
|
switch ($siteName) {
|
||||||
|
case 'ssd':
|
||||||
|
// 辅种计数器
|
||||||
|
if (isset($configALL[$siteName]['count']) && $configALL[$siteName]['count'] > 10) {
|
||||||
|
$configALL[$siteName]['limit'] = 1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'hdchina':
|
case 'hdchina':
|
||||||
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
||||||
$userAgent = $configALL['default']['userAgent'];
|
$userAgent = $configALL['default']['userAgent'];
|
||||||
@ -525,6 +531,12 @@ class AutoReseed
|
|||||||
case 'hdcity':
|
case 'hdcity':
|
||||||
$url = $_url;
|
$url = $_url;
|
||||||
break;
|
break;
|
||||||
|
case 'ssd':
|
||||||
|
// 辅种计数器
|
||||||
|
if ($ret) {
|
||||||
|
$configALL[$siteName]['count']++;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user