This commit is contained in:
crschnick
2025-08-06 19:27:05 +00:00
parent 4fca3fe0c5
commit 9d6002f942
2 changed files with 15 additions and 0 deletions
@@ -1,6 +1,8 @@
package io.xpipe.app.util;
import java.io.IOException;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.util.Locale;
@@ -33,4 +35,15 @@ public class HostHelper {
return false;
}
public static boolean isLocalNetworkAddress(String host) {
Inet4Address inet4Address = null;
try {
inet4Address = Inet4Address.ofLiteral(host);
} catch (IllegalArgumentException ignored) {
return false;
}
return inet4Address.isSiteLocalAddress();
}
}
+2
View File
@@ -24,6 +24,7 @@ You can now configure multiple addresses for a host. This allows you to quickly
- Add more documentation links to the settings menu
- Improve vscode launch menu to be more compact
- Add support to launch VsCode Insiders and Trae as well in the vscode launch menu
- Disable SSH host key checking for local network devices
## Fixes
@@ -31,3 +32,4 @@ You can now configure multiple addresses for a host. This allows you to quickly
- Fix license check becoming invalid if xpipe was left running for more than a week
- Fix some terminal connections asking for passwords even if it was entered before if the connection was edited
- Fix tunnel restart sometimes resulting in an invalid tunnel state
- Fix small parts of the UI moving a bit on hover