severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
258 stars 90 forks source link

Added support for IPv6 connections #46

Closed tbartelmess closed 7 years ago

tbartelmess commented 9 years ago

Pythons DatagramHandler does not support IPv6 connections. See Python issue #14855

As a workaround I've overrode makeSocket, and use getsockaddr to determine the address family of the address before creating the socket

severb commented 9 years ago

Hey Thomas thanks for the patch. Unfortunately the method you're overriding is pretty different on py2 and py3 and I'm not comfortable integrating this as I don't understand the change. Also, the corner case handling doesn't look right.

tusharmakkar08 commented 7 years ago

Closing this PR since it's not active.