Skip to content

Commit

Permalink
aria2rpc: Fix non-TLS connection
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Mar 15, 2014
1 parent a670965 commit 169cd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/xmlrpc/aria2rpc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 169cd6a

Please sign in to comment.