aria2rpc: Fix non-TLS connection

This commit is contained in:
Tatsuhiro Tsujikawa 2014-03-15 19:28:46 +09:00
parent a67096522d
commit 169cd6a309

View File

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