Support SRV record unfurling for PC networks
This commit is contained in:
@ -48,7 +48,10 @@ function pingMinecraftPE(host, port, timeout, callback) {
|
||||
|
||||
exports.ping = function(host, port, type, timeout, callback, version) {
|
||||
if (type === 'PC') {
|
||||
pingMinecraftPC(host, port || 25565, timeout, callback, version);
|
||||
util.unfurlSRV(host, port, function(host, port){
|
||||
console.log('Pinging '+host+":"+port+"...")
|
||||
pingMinecraftPC(host, port || 25565, timeout, callback, version);
|
||||
})
|
||||
} else if (type === 'PE') {
|
||||
pingMinecraftPE(host, port || 19132, timeout, callback);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user