Merge pull request #13 from kovalevfm/master

add ipv6 support
This commit is contained in:
Patrick Hensley 2014-09-03 08:29:39 -04:00
commit c6d3d22f16
1 changed files with 1 additions and 2 deletions

View File

@ -100,8 +100,7 @@ class GraphiteSink(Sink):
for host in self._hosts:
# flush stats to graphite
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(host)
sock = socket.create_connection(host)
sock.sendall(buf.getvalue())
sock.close()
except Exception, ex: