Skip to content
Snippets Groups Projects
Verified Commit f62b3fa5 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add TCP open timeout to passwordstate client

parent 3540b478
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class PasswordstateServer < ApplicationRecord
def client
require 'passwordstate'
@client ||= Passwordstate::Client.new(url, api_type: api_type.to_sym, timeout: 10).tap do |cl|
@client ||= Passwordstate::Client.new(url, api_type: api_type.to_sym, open_timeout: 5, timeout: 10).tap do |cl|
if api_type.to_sym == :api
cl.auth_data = { apikey: password }
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment