mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Remove dot from end of host in SRV records.
This commit is contained in:
parent
1431dfcaea
commit
32247f3098
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ public class TcpClientSession extends TcpSession {
|
|||
String[] result = new InitialDirContext(environment).getAttributes(getPacketProtocol().getSRVRecordPrefix() + "._tcp." + host, new String[] {"SRV"}).get("srv").get().toString().split(" ", 4);
|
||||
host = result[3];
|
||||
port = Integer.parseInt(result[2]);
|
||||
if(host.endsWith(".")) {
|
||||
host = host.substring(0, host.length() - 1);
|
||||
}
|
||||
} catch(Throwable t) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue