Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
get the actual IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jan 8, 2015
1 parent 509901a commit 50d2966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class << self
# @param [Integer] port your statsd port
def initialize(host, port=8125, key=nil)
@host, @port, @key = host, port, key
@ip = Addrinfo.ip(host)
@ip = Addrinfo.ip(host).ip_address
end

# Sends an increment (count = 1) for the given stat to the statsd server.
Expand Down

0 comments on commit 50d2966

Please sign in to comment.