Skip to content

Commit

Permalink
Merge pull request #20 from GetDutchie/master
Browse files Browse the repository at this point in the history
feature: assume localhost for statsd host
  • Loading branch information
yob authored Dec 23, 2020
2 parents ea2f59d + d77ea25 commit 481deef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/plugin/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class StatsdConnector
attr_reader :host, :port

def initialize
@host = ENV.fetch(ENV_NAME, nil)
@host = ENV.fetch(ENV_NAME, "127.0.0.1")
@port = ENV.fetch("STATSD_PORT", 8125)
end

Expand Down

0 comments on commit 481deef

Please sign in to comment.