diff --git a/pom.xml b/pom.xml
index 2ca665f8..2a8e9d37 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.osiris.autoplug.client
autoplug-client
- 7.3.4
+ 7.3.5
jar
AutoPlug-Client
diff --git a/src/main/java/com/osiris/autoplug/client/Server.java b/src/main/java/com/osiris/autoplug/client/Server.java
index e0a4b743..ff425edf 100644
--- a/src/main/java/com/osiris/autoplug/client/Server.java
+++ b/src/main/java/com/osiris/autoplug/client/Server.java
@@ -96,7 +96,7 @@ public static File getServerExecutable() throws NotLoadedException, YamlReaderEx
}
} else {
if (!serverExe.exists())
- AL.warn("Note that the provided file doesn't seem to exist, this may cause troubles later.");
+ AL.warn("Note that the server executable \"" + serverExe.getName() + "\" doesn't seem to exist yet, which may cause issues. Full path: " + serverExe.getAbsolutePath());
break;
}
}
diff --git a/src/main/java/com/osiris/autoplug/client/SystemChecker.java b/src/main/java/com/osiris/autoplug/client/SystemChecker.java
index 33c5507e..0a2d2dac 100644
--- a/src/main/java/com/osiris/autoplug/client/SystemChecker.java
+++ b/src/main/java/com/osiris/autoplug/client/SystemChecker.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021-2022 Osiris-Team.
+ * Copyright (c) 2021-2023 Osiris-Team.
* All rights reserved.
*
* This software is copyrighted work, licensed under the terms
@@ -11,8 +11,7 @@
import com.osiris.jlib.logger.AL;
import java.io.*;
-import java.net.HttpURLConnection;
-import java.net.URL;
+import java.net.InetAddress;
public class SystemChecker {
@@ -43,12 +42,8 @@ public void checkReadWritePermissions() throws Exception {
public void checkInternetAccess() throws Exception {
try {
- HttpURLConnection connection = (HttpURLConnection) new URL("https://www.google.com").openConnection();
- connection.setRequestMethod("HEAD");
- int responseCode = connection.getResponseCode();
- if (responseCode != 200) {
- throw new Exception("Failed to get code 200 from " + connection.getURL().toString());
- }
+ boolean reachable = InetAddress.getByName("www.google.com").isReachable(10000);
+ if (!reachable) throw new Exception("Failed to reach www.google.com!");
} catch (Exception e) {
System.err.println("Make sure that you have an internet connection!");
throw e;