mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-13 04:08:57 +00:00
m-team支持ipv4/ipv6自定义配置
This commit is contained in:
@ -86,6 +86,12 @@ class Rpc
|
||||
{
|
||||
if(self::$workingMode === 1 && empty(self::$links)){
|
||||
foreach ( self::$clients as $k => $v ){
|
||||
// 跳过未配置的客户端
|
||||
if (empty($v['username']) || empty( $v['password'])) {
|
||||
unset(self::$clients[$k]);
|
||||
echo "clients_".$k." 用户名或密码未配置,已跳过 \n\n";
|
||||
continue;
|
||||
}
|
||||
try
|
||||
{
|
||||
switch($v['type']){
|
||||
|
@ -72,8 +72,16 @@ class Mteam implements decodeBase
|
||||
$config = $configALL[self::SITE];
|
||||
self::$cookies = $config['cookie'];
|
||||
self::$userAgent = isset($config['userAgent']) && $config['userAgent'] ? $config['userAgent'] : $configALL['default']['userAgent'];
|
||||
self::$passkey = isset($config['passkey']) ? '&passkey='.$config['passkey'].'&https=1' : '';
|
||||
|
||||
// ipv4、ipv6自定义
|
||||
$ip_type = '';
|
||||
if (isset($config['ip_type'])) {
|
||||
$ip_type = $config['ip_type'] == 'ipv6' ? '&ipv6=1' : '';
|
||||
}
|
||||
self::$passkey = isset($config['passkey']) && $config['passkey'] ? '&passkey='.$config['passkey']. $ip_type .'&https=1' : '';
|
||||
if (empty(self::$passkey)) {
|
||||
echo '程序退出,原因:请配置馒头秘钥!!';
|
||||
exit(1);
|
||||
}
|
||||
requests::$input_encoding = self::encoding; //输入的网页编码
|
||||
requests::$output_encoding = self::encoding; //输出的网页编码
|
||||
requests::set_cookies(self::$cookies, self::domain);
|
||||
@ -96,6 +104,7 @@ class Mteam implements decodeBase
|
||||
exit(1);
|
||||
}
|
||||
$data = self::decode($html);
|
||||
#P($data);exit;
|
||||
Rpc::call($data);
|
||||
exit(0);
|
||||
}
|
||||
@ -170,7 +179,7 @@ class Mteam implements decodeBase
|
||||
self::$TorrentList[$k]['h1'] = $arr['h1'];
|
||||
self::$TorrentList[$k]['title'] = isset( $arr['title'] ) && $arr['title'] ? $arr['title'] : '';
|
||||
self::$TorrentList[$k]['details'] = self::HOST.self::detailsPrefix.$arr['id'];
|
||||
self::$TorrentList[$k]['download'] = self::HOST.$arr['url'].'&https=1';
|
||||
self::$TorrentList[$k]['download'] = self::HOST.$arr['url'] . self::$passkey;
|
||||
self::$TorrentList[$k]['filename'] = $arr['id'].'.torrent';
|
||||
|
||||
// 种子促销类型解码
|
||||
|
12
iyuu.cn.php
12
iyuu.cn.php
@ -82,6 +82,12 @@ class iyuuAutoReseed
|
||||
{
|
||||
if(empty(self::$links)){
|
||||
foreach ( self::$clients as $k => $v ){
|
||||
// 跳过未配置的客户端
|
||||
if (empty($v['username']) || empty( $v['password'])) {
|
||||
unset(self::$clients[$k]);
|
||||
echo "clients_".$k." 用户名或密码未配置,已跳过 \n\n";
|
||||
continue;
|
||||
}
|
||||
try
|
||||
{
|
||||
switch($v['type']){
|
||||
@ -335,7 +341,11 @@ class iyuuAutoReseed
|
||||
$url = $_url."/". $configALL[$sites[$sitesID]['site']]['passkey'];
|
||||
break;
|
||||
case 'm-team':
|
||||
$url = $_url."&passkey=". $configALL[$sites[$sitesID]['site']]['passkey'] ."&https=1";
|
||||
$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':
|
||||
// break;
|
||||
|
@ -4,8 +4,8 @@
|
||||
| 微信鉴权 | 已完成 | 2019年12月22日 | 2019年12月23日 |
|
||||
| 添加成功种子,过滤 | 已完成 | 2019年12月24日 | 2019年12月24日 |
|
||||
| 流控站点,手动辅种 | 已完成 | 2019年12月24日 | 2019年12月24日 |
|
||||
| m-team IPv4、IPv6自定义配置 | 正在开发 | 2019年12月25日 | |
|
||||
| 未配置客户端智能过滤 | 正在开发 | 2019年12月25日 | |
|
||||
| m-team IPv4、IPv6自定义配置 | 已完成 | 2019年12月25日 | 2019年12月25日 |
|
||||
| 未配置客户端智能过滤 | 已完成 | 2019年12月25日 | 2019年12月25日 |
|
||||
| 脚本docker容器化 | 暂未开始 | | |
|
||||
| 浏览器插件 | 暂未开始 | | |
|
||||
| 自动辅种结束微信通知 | 正在开发 | 2019年12月25日 | |
|
||||
|
@ -1,3 +1,9 @@
|
||||
### 2019年12月25日
|
||||
1.馒头支持ipv4、ipv6选择
|
||||
2.未配置的全局客户端智能过滤,不会再影响自动辅种
|
||||
|
||||
------
|
||||
|
||||
### 2019年12月24日
|
||||
新增hdstreet、joyhd、u2
|
||||
|
||||
|
Reference in New Issue
Block a user