Fix issue with minecraft SRV record resolving directly to IP

This commit is contained in:
Michael Morrison 2013-07-10 09:56:07 -05:00
parent 1d2198373f
commit a771dab222

View file

@ -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