graygelf icon indicating copy to clipboard operation
graygelf copied to clipboard

bind on ipv6

Open limbo127 opened this issue 6 years ago • 3 comments

Hello, impossible to bind on ipv6 regards, Nicolas

server.listen(16343,'[fd00:0:5d80:0:c23f:d5ff:fe6f:ec58]')

limbo127 avatar Oct 22 '19 13:10 limbo127

This lib just uses Node.js dgram.bind under the hood, which should support ipv6:

https://nodejs.org/api/dgram.html#dgram_socket_bind_port_address_callback

wavded avatar Oct 22 '19 14:10 wavded

In server.js , line 23 this._udp = dgram.createSocket('udp4')

limbo127 avatar Oct 23 '19 12:10 limbo127

Ahh, missed that. Yes, that would need to be udp6 in your case. Care to make a PR?

wavded avatar Oct 23 '19 19:10 wavded