mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-18 17:50:37 +01:00
Fix issue with minecraft SRV record resolving directly to IP
This commit is contained in:
parent
1d2198373f
commit
a771dab222
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ module.exports = require('./gamespy3').extend({
|
||||||
self.options.port = line.port;
|
self.options.port = line.port;
|
||||||
var srvhost = line.name;
|
var srvhost = line.name;
|
||||||
|
|
||||||
if(self.options.host.match(/\d+\.\d+\.\d+\.\d+/)) {
|
if(srvhost.match(/\d+\.\d+\.\d+\.\d+/)) {
|
||||||
self.options.host = srvhost;
|
self.options.address = srvhost;
|
||||||
c();
|
c();
|
||||||
} else {
|
} else {
|
||||||
// resolve yet again
|
// resolve yet again
|
||||||
|
|
Loading…
Reference in a new issue