From a771dab2227813777af64ddb5fdd18d74ac23a33 Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Wed, 10 Jul 2013 09:56:07 -0500 Subject: [PATCH] Fix issue with minecraft SRV record resolving directly to IP --- protocols/minecraft.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/minecraft.js b/protocols/minecraft.js index aa52d9f..9f3030e 100644 --- a/protocols/minecraft.js +++ b/protocols/minecraft.js @@ -18,8 +18,8 @@ module.exports = require('./gamespy3').extend({ self.options.port = line.port; var srvhost = line.name; - if(self.options.host.match(/\d+\.\d+\.\d+\.\d+/)) { - self.options.host = srvhost; + if(srvhost.match(/\d+\.\d+\.\d+\.\d+/)) { + self.options.address = srvhost; c(); } else { // resolve yet again