mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-02 23:15:21 +00:00
优化过滤transmission连接URL兼容性(修复网址后有斜杠,无法连接的问题)
This commit is contained in:
parent
93208b3dc3
commit
0ccc4f6342
@ -133,7 +133,7 @@ class transmission extends AbstractClient
|
|||||||
*/
|
*/
|
||||||
public function __construct($url = 'http://127.0.0.1:9091/transmission/rpc', $username = null, $password = null)
|
public function __construct($url = 'http://127.0.0.1:9091/transmission/rpc', $username = null, $password = null)
|
||||||
{
|
{
|
||||||
$this->url = $url;
|
$this->url = rtrim($url, '/');
|
||||||
$this->username = $username;
|
$this->username = $username;
|
||||||
$this->password = $password;
|
$this->password = $password;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user