Closed
Description
On node 4.x and node <5.7 this worked
var dgram = require('dgram')
var socket = dgram.createSocket('udp4')
socket.send(Buffer('hi'), 0, 2, 10000) // works on 4.x <5.7
With node 5.7 this fails with
RangeError: Port should be > 0 and < 65536
The dgram docs on both 4.x and 5.x say
If the address is not specified or is an empty string, '0.0.0.0' or '::0' will be used instead
- Version: v5.7.0
- Platform: Darwin brunhilde.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64