File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ def initialize(opts = {})
5656 @stream = opts . has_key? ( :stream ) ? opts [ :stream ] : Config . default_stream
5757 @offline = opts . has_key? ( :offline ) ? opts [ :offline ] : Config . default_offline
5858 @poll_interval = opts . has_key? ( :poll_interval ) && opts [ :poll_interval ] > 1 ? opts [ :poll_interval ] : Config . default_poll_interval
59+ @proxy = opts [ :proxy ] || Config . default_proxy
5960 end
6061
6162 #
@@ -143,6 +144,11 @@ def offline?
143144 #
144145 attr_reader :feature_store
145146
147+
148+ # The proxy configuration
149+ #
150+ attr_reader :proxy
151+
146152 #
147153 # The default LaunchDarkly client configuration. This configuration sets
148154 # reasonable defaults for most users.
@@ -184,6 +190,10 @@ def self.default_connect_timeout
184190 2
185191 end
186192
193+ def self . default_proxy
194+ nil
195+ end
196+
187197 def self . default_logger
188198 if defined? ( Rails ) && Rails . respond_to? ( :logger )
189199 Rails . logger
You can’t perform that action at this time.
0 commit comments