Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pystatsd/statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class BaseClient(object):

def __init__(self, host='localhost', port=8125, prefix=None):
def __init__(self, host='127.0.0.1', port=8125, prefix=None):
self.host = host
self.port = int(port)
self.prefix = prefix
Expand Down Expand Up @@ -91,7 +91,7 @@ class Client(BaseClient):
def __init__(self, *args, **kwargs):
"""Create a new Statsd client.

* host: the host where statsd is listening, defaults to localhost
* host: the host where statsd is listening, defaults to 127.0.0.1
* port: the port where statsd is listening, defaults to 8125
* prefix: a prefix to prepend to all logged stats

Expand Down