mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-27 10:55:52 +00:00
Rework
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user