mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-12 11:48:57 +00:00
Transmission兼容支持https链接
This commit is contained in:
@ -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