From 37319ea8766255f7a62d57ad6070fdd54474c338 Mon Sep 17 00:00:00 2001 From: mmorrison Date: Wed, 31 Jan 2018 00:43:11 -0600 Subject: [PATCH] Bind to a random udp port (Fixes #71) --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 6bd7f01..5a8c5c7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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");