Add support for SRV records (#6982)
* SRV record support * respect the formatting II * avoid blocking call * Add android support * switch to stripped down version of dnsjava * move srv lookup from `Net` to `NetProvider` * random optimizations * bump arc and restart the thing * reimplement using ArcDns * Update core/src/mindustry/net/ArcNetProvider.java Co-authored-by: buthed010203 <naguiar010203@gmail.com> * Update ArcNetProvider.java Co-authored-by: buthed010203 <naguiar010203@gmail.com>
This commit is contained in:
@@ -133,7 +133,7 @@ public class JoinDialog extends BaseDialog{
|
||||
if(!buttons[0].childrenPressed()){
|
||||
if(server.lastHost != null){
|
||||
Events.fire(new ClientPreConnectEvent(server.lastHost));
|
||||
safeConnect(server.ip, server.port, server.lastHost.version);
|
||||
safeConnect(server.lastHost.address, server.lastHost.port, server.lastHost.version);
|
||||
}else{
|
||||
connect(server.ip, server.port);
|
||||
}
|
||||
@@ -410,7 +410,6 @@ public class JoinDialog extends BaseDialog{
|
||||
int resport = address.contains(":") ? Strings.parseInt(address.split(":")[1]) : port;
|
||||
net.pingHost(resaddress, resport, res -> {
|
||||
if(refreshes != cur) return;
|
||||
res.port = resport;
|
||||
|
||||
//add header
|
||||
if(groupTable[0] == null){
|
||||
|
||||
Reference in New Issue
Block a user