-
Notifications
You must be signed in to change notification settings - Fork 60
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
Unable to ping bungeecord servers #573
Comments
Previous BungeeCord problems: #125 #142 stevenarella/protocol/src/protocol/mod.rs Line 1046 in eb452ab
// TODO SRV record support see also: #401 server_list: automatically show LAN servers |
I tried it with Hypixel and some others and it didn't work, I don't know if they have a SRV record. |
Should I close this issue? I fixed the issue for my project, but I can leave it open if it has any value to this project. |
Yes I would like to fix this here too, curious of your fix? Couldn't find much searching for https://github.com/terrarier2111/Leafish/search?q=bungeecord - maybe this: SRV lookup in https://github.com/terrarier2111/Leafish/blame/f44cf08d818f755e9ca834ec6c55ee3912e67312/protocol/src/protocol/mod.rs#L1132-L1151 impl Conn {
fn get_server_addresses(mut hostname: &str) -> Vec<String> {
let mut addresses = vec![];
let parts = hostname.split(':').collect::<Vec<&str>>();
if parts.len() > 1 {
addresses.push(hostname.to_string());
hostname = parts[0];
}
let records = RESOLVER.srv_lookup(format!("_minecraft._tcp.{}", hostname));
if records.is_ok() {
for record in records.unwrap() {
debug!("{}:{}", record.target(), record.port());
addresses.push(format!("{}:{}", record.target(), record.port()));
}
}
addresses.push(format!("{}:25565", hostname));
addresses
} added in terrarier2111/Leafish@d8ce7ec |
When pinging BungeeCord servers, the server list only shows "Connecting", "Connection timed out (os error 110)" or "Connection refused (os error 111)" while connecting with original minecraft works fine.
The text was updated successfully, but these errors were encountered: