mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2026-10-22 21:03:59 +00:00
Transmission兼容支持https链接
This commit is contained in:
1 parent
385a122f02
commit
7d531a26c8
4 files changed
+50
No files matched your search
@@ -714,6 +714,10 @@ class TransmissionRPC implements AbstractClientInterface
|
||||
// Setup authentication (if provided)
|
||||
if ($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) {
|
||||
|
||||
Reference in new issue
Block a user