node-statsd icon indicating copy to clipboard operation
node-statsd copied to clipboard

node-statsd binds to all hosts by default

Open watercrossing opened this issue 10 years ago • 1 comments

When creating nodejs' dgram.Socket it is bound to all hosts by default. Is this intentional?

For public servers it might be a good idea to only bind to specific interfaces (e.g. localhost); this can be modified by calling Socket.bind.

watercrossing avatar Sep 05 '14 15:09 watercrossing

What is the main concern here? While it binds on all ports by default, it is only sending out on localhost. Additionally, would you be willing to create a pull request?

devdazed avatar Nov 17 '14 15:11 devdazed