Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc.createClient doesnt check for SRV dns records #1298

Open
exhq opened this issue Apr 19, 2024 · 1 comment
Open

mc.createClient doesnt check for SRV dns records #1298

exhq opened this issue Apr 19, 2024 · 1 comment

Comments

@exhq
Copy link

exhq commented Apr 19, 2024

[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
Copy link
Author

exhq commented Apr 19, 2024

for more context, here is my dns entries:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant