Transmission兼容支持https链接

This commit is contained in:
iyuu.cn
2020-01-20 14:08:44 +08:00
parent 385a122f02
commit 7d531a26c8
4 changed files with 50 additions and 0 deletions

View File

@ -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) {