Bind to a random udp port (Fixes #71)

This commit is contained in:
mmorrison 2018-01-31 00:43:11 -06:00
parent 94815a247d
commit 37319ea876

View file

@ -6,7 +6,7 @@ const activeQueries = [];
const udpSocket = dgram.createSocket('udp4');
udpSocket.unref();
udpSocket.bind(21943);
udpSocket.bind();
udpSocket.on('message', (buffer, rinfo) => {
if(Gamedig.debug) {
console.log(rinfo.address+':'+rinfo.port+" <--UDP");