lib/contrast/components/contrast_service.rb in contrast-agent-3.14.0 vs lib/contrast/components/contrast_service.rb in contrast-agent-3.15.0
- old
+ new
@@ -34,14 +34,14 @@
(LOCALHOST.match?(host) || !!socket_path)
end
end
def host
- @_host ||= (CONFIG.root.agent.service.host || Contrast::Configuration::DEFAULT_HOST).to_s
+ @_host ||= CONFIG.root.agent.service.host.to_s
end
def port
- @_port ||= (CONFIG.root.agent.service.port || DEFAULT_PORT).to_i
+ @_port ||= CONFIG.root.agent.service.port.to_i
end
def socket_path
@_socket_path ||= CONFIG.root.agent.service.socket
end