lib/tor/control.rb in tor-0.1.3 vs lib/tor/control.rb in tor-0.1.4
- old
+ new
@@ -188,10 +188,10 @@
#
# @return [void]
# @raise [AuthenticationError] if authentication failed
def authenticate(cookie = nil)
cookie ||= @options[:cookie]
- send(:send_line, cookie ? "AUTHENTICATE \"#{cookie}\"" : "AUTHENTICATE")
+ send(:send_line, cookie ? "AUTHENTICATE #{cookie}" : "AUTHENTICATE")
case reply = read_reply
when '250 OK' then @authenticated = true
else raise AuthenticationError.new(reply)
end
self