node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

mc.createClient doesnt check for SRV dns records

Open exhq opened this issue 2 months ago • 1 comments

[x] The FAQ doesn't contain a resolution to my issue

Versions

  • minecraft-protocol: 1.20.2
  • server: paper 1.20.2
  • node: 21.7.2

Detailed description of a problem

mc.createClient doesnt check for SRV dns records i have an A record set to X ip, and an SRV record set to Y ip. if i set mc.createClient({host: "my domain" ...}), it tries to connect to X instead of Y

Current code

const client = mc.createClient({
        host: host,
        port: port,
        username: "funny"
});

Expected behavior

connection to Y ip

Additional context

exhq avatar Apr 19 '24 14:04 exhq