From ef0f0075d3295c47cc872b0deb144e0144e13259 Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Wed, 10 Jul 2013 06:07:13 -0500 Subject: [PATCH] Fix udp responses --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6b059a9..80a988b 100644 --- a/index.js +++ b/index.js @@ -11,8 +11,8 @@ udpSocket.bind(21943); udpSocket.on('message', function(buffer, rinfo) { for(var i = 0; i < activeQueries.length; i++) { var query = activeQueries[i]; - if(query.address != rinfo.address) continue; - if(query.port != rinfo.port) continue; + if(query.options.address != rinfo.address) continue; + if(query.options.port != rinfo.port) continue; query._udpResponse(buffer); break; }