remove mojang pinger debug
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 2m1s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 2m1s
This commit is contained in:
parent
f85ed49545
commit
7df4fda744
@ -19,6 +19,7 @@ import java.io.ByteArrayInputStream;
|
||||
public class ServerPreviewRenderer extends Renderer<MinecraftServer> {
|
||||
public static final ServerPreviewRenderer INSTANCE = new ServerPreviewRenderer();
|
||||
|
||||
|
||||
private static BufferedImage SERVER_BACKGROUND;
|
||||
private static BufferedImage PING_ICON;
|
||||
static {
|
||||
|
@ -194,9 +194,7 @@ public class MojangService {
|
||||
try {
|
||||
long start = System.currentTimeMillis();
|
||||
InetAddress address = InetAddress.getByName(endpoint.getHostname());
|
||||
log.info("gotaddr {}, {}", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms");
|
||||
if (address.isReachable((int) TimeUnit.SECONDS.toMillis(4))) { // Check if the endpoint is reachable
|
||||
log.info("isreachable {}, {}", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms");
|
||||
endpoint.setStatus(EndpointStatus.Status.ONLINE);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user