lib/contrast/components/contrast_service.rb in contrast-agent-4.12.0 vs lib/contrast/components/contrast_service.rb in contrast-agent-4.13.0

- old
+ new

@@ -29,9 +29,15 @@ # Either a valid host or a valid socket # Path validity is the service's problem (LOCALHOST.match?(host) || !!socket_path) end + def use_agent_communication? + return @_use_agent_communication unless @_use_agent_communication.nil? + + @_use_agent_communication = true?(::Contrast::CONFIG.root.agent.service.bypass) + end + def host @_host ||= (::Contrast::CONFIG.root.agent.service.host || Contrast::Config::ServiceConfiguration::DEFAULT_HOST).to_s end