node-minecraft-protocol
node-minecraft-protocol copied to clipboard
mc.createClient doesnt check for SRV dns records
[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