Only update the dns cache on new lookups (Fixes #1221)

This causes the cached entry to be looked up every 5 minutes instead of the previous system where it was kept as long as it was used. This fixes an issue where after Mojang's session servers go down the ip address tends to change. This caused bungee to repeatedly hit the old (inactive) one which with the previous system would be re-cached every time someone tried to connect
This commit is contained in:
Thinkofdeath 2014-09-11 10:18:34 +01:00
parent 4e353e9277
commit 1623fb6952

View File

@ -68,8 +68,8 @@ public class HttpClient
callback.done( null, ex );
return;
}
addressCache.put( uri.getHost(), inetHost );
}
addressCache.put( uri.getHost(), inetHost );
ChannelFutureListener future = new ChannelFutureListener()
{