mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 15:04:50 +00:00
优化:MoeCat自动辅种,支持ipv4、ipv6可配置
This commit is contained in:
@@ -209,7 +209,9 @@ return array(
|
|||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
'cookie' => '',
|
'cookie' => '',
|
||||||
// 如果需要自动辅种,必须配置
|
// 如果需要自动辅种,必须配置
|
||||||
'passkey' => '',
|
'passkey' => '',
|
||||||
|
// 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||||
|
'ip_type' => 'ipv4',
|
||||||
),
|
),
|
||||||
// totheglory 序号:14
|
// totheglory 序号:14
|
||||||
'ttg' => array(
|
'ttg' => array(
|
||||||
|
@@ -411,6 +411,13 @@ class iyuuAutoReseed
|
|||||||
}
|
}
|
||||||
$url = $_url."&passkey=". $configALL[$sites[$sitesID]['site']]['passkey'] . $ip_type. "&https=1";
|
$url = $_url."&passkey=". $configALL[$sites[$sitesID]['site']]['passkey'] . $ip_type. "&https=1";
|
||||||
break;
|
break;
|
||||||
|
case 'moecat':
|
||||||
|
$ip_type = '';
|
||||||
|
if (isset($configALL[$sites[$sitesID]['site']]['ip_type'])) {
|
||||||
|
$ip_type = $configALL[$sites[$sitesID]['site']]['ip_type'] == 'ipv6' ? '&ipv6=1' : '';
|
||||||
|
}
|
||||||
|
$url = $_url."&passkey=". $configALL[$sites[$sitesID]['site']]['passkey'] . $ip_type. "&https=1";
|
||||||
|
break;
|
||||||
case 'hdchina':
|
case 'hdchina':
|
||||||
if ( empty($configALL[$sites[$sitesID]['site']]['cookie']) ) {
|
if ( empty($configALL[$sites[$sitesID]['site']]['cookie']) ) {
|
||||||
echo '-------因当前' .$sites[$sitesID]['site']. '站点未设置cookie,已跳过!!' . "\n\n";
|
echo '-------因当前' .$sites[$sitesID]['site']. '站点未设置cookie,已跳过!!' . "\n\n";
|
||||||
|
Reference in New Issue
Block a user