mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
aria2rpc: Fix non-TLS connection
This commit is contained in:
parent
a67096522d
commit
169cd6a309
@ -318,7 +318,7 @@ client=XMLRPC::Client.new3({:host => options["server"],
|
||||
:path => "/rpc",
|
||||
:user => options["user"],
|
||||
:password => options["passwd"],
|
||||
:use_ssl => options["secure"]})
|
||||
:use_ssl => options["secure"] == "true"})
|
||||
|
||||
if options["check-rpc-cert"] == "false" then
|
||||
client.instance_variable_get(:@http).instance_variable_set(:@verify_mode, OpenSSL::SSL::VERIFY_NONE)
|
||||
|
Loading…
Reference in New Issue
Block a user