aria2rpc: Fix non-TLS connection

pull/206/merge
Tatsuhiro Tsujikawa 2014-03-15 19:28:46 +09:00
parent a67096522d
commit 169cd6a309
1 changed files with 1 additions and 1 deletions

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)