mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-04-26 20:33:25 +00:00
Transmission兼容支持https链接
This commit is contained in:
parent
385a122f02
commit
7d531a26c8
@ -714,6 +714,10 @@ class TransmissionRPC implements AbstractClientInterface
|
|||||||
// Setup authentication (if provided)
|
// Setup authentication (if provided)
|
||||||
if ($this->username && $this->password) {
|
if ($this->username && $this->password) {
|
||||||
$contextopts['http']['header'] = sprintf("Authorization: Basic %s\r\n", base64_encode($this->username . ':' . $this->password));
|
$contextopts['http']['header'] = sprintf("Authorization: Basic %s\r\n", base64_encode($this->username . ':' . $this->password));
|
||||||
|
$contextopts['http']['ssl'] = array(
|
||||||
|
"verify_peer"=>false,
|
||||||
|
"verify_peer_name"=>false,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->debug) {
|
if ($this->debug) {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use IYUU\Library\IFile;
|
use IYUU\Library\IFile;
|
||||||
|
use IYUU\Library\Table;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调试函数
|
* 调试函数
|
||||||
@ -341,3 +342,37 @@ function object_array($array)
|
|||||||
}
|
}
|
||||||
return $array;
|
return $array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示支持的站点列表
|
||||||
|
*/
|
||||||
|
function ShowTableSites(){
|
||||||
|
$data = [];
|
||||||
|
$i = $j = $k = 0;
|
||||||
|
foreach(glob(APP_PATH.'Protocols'.DS.'*.php') as $key => $start_file)
|
||||||
|
{
|
||||||
|
$start_file = str_replace("\\","/",$start_file);
|
||||||
|
$offset = strripos($start_file,'/');
|
||||||
|
if ($offset===false) {
|
||||||
|
$start_file = substr($start_file,0,-4);
|
||||||
|
} else {
|
||||||
|
$start_file = substr($start_file,$offset+1,-4);
|
||||||
|
}
|
||||||
|
// 过滤示例、过滤解码接口
|
||||||
|
if (in_array($start_file,['axxxx','decodeBase'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// 控制多少列
|
||||||
|
if ($i > 4) {
|
||||||
|
$k++;
|
||||||
|
$i = 0;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
$j++;
|
||||||
|
$data[$k][] = $j.". ".$start_file;
|
||||||
|
}
|
||||||
|
//输出表格
|
||||||
|
$table = new Table();
|
||||||
|
$table->setRows($data);
|
||||||
|
echo($table->render());
|
||||||
|
}
|
||||||
|
1
init.php
1
init.php
@ -5,6 +5,7 @@
|
|||||||
// 定义目录
|
// 定义目录
|
||||||
defined('ROOT_PATH') or define("ROOT_PATH", __DIR__);
|
defined('ROOT_PATH') or define("ROOT_PATH", __DIR__);
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
defined('APP_PATH') or define('APP_PATH', ROOT_PATH.DS.'app'.DS);
|
||||||
define('TORRENT_PATH', ROOT_PATH.DS.'torrent'.DS);
|
define('TORRENT_PATH', ROOT_PATH.DS.'torrent'.DS);
|
||||||
|
|
||||||
// 严格开发模式
|
// 严格开发模式
|
||||||
|
10
iyuu.php
10
iyuu.php
@ -2,6 +2,16 @@
|
|||||||
require_once __DIR__ . '/init.php';
|
require_once __DIR__ . '/init.php';
|
||||||
use IYUU\AutoReseed;
|
use IYUU\AutoReseed;
|
||||||
|
|
||||||
|
#echo "IYUUAutoReseed自动辅种脚本,目前支持以下站点:".PHP_EOL;
|
||||||
|
#ShowTableSites();
|
||||||
|
echo <<<EOF
|
||||||
|
gitee 源码仓库:https://gitee.com/ledc/IYUUAutoReseed
|
||||||
|
github源码仓库:https://github.com/ledccn/IYUUAutoReseed
|
||||||
|
教程:https://gitee.com/ledc/IYUUAutoReseed/tree/master/wiki
|
||||||
|
QQ群:859882209 【IYUU自动辅种交流】
|
||||||
|
EOF;
|
||||||
|
echo PHP_EOL.PHP_EOL;
|
||||||
|
|
||||||
AutoReseed::init();
|
AutoReseed::init();
|
||||||
$hashArray = AutoReseed::get();
|
$hashArray = AutoReseed::get();
|
||||||
if (AutoReseed::$move != null) {
|
if (AutoReseed::$move != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user