mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Fix udp responses
This commit is contained in:
parent
cb5e47aebe
commit
ef0f0075d3
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -11,8 +11,8 @@ udpSocket.bind(21943);
|
||||||
udpSocket.on('message', function(buffer, rinfo) {
|
udpSocket.on('message', function(buffer, rinfo) {
|
||||||
for(var i = 0; i < activeQueries.length; i++) {
|
for(var i = 0; i < activeQueries.length; i++) {
|
||||||
var query = activeQueries[i];
|
var query = activeQueries[i];
|
||||||
if(query.address != rinfo.address) continue;
|
if(query.options.address != rinfo.address) continue;
|
||||||
if(query.port != rinfo.port) continue;
|
if(query.options.port != rinfo.port) continue;
|
||||||
query._udpResponse(buffer);
|
query._udpResponse(buffer);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue