mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Bind to a random udp port (Fixes #71)
This commit is contained in:
parent
94815a247d
commit
37319ea876
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue