From 9d6002f942118a6919bc786ef5239d1e21489989 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 6 Aug 2025 19:27:05 +0000 Subject: [PATCH] Rework --- app/src/main/java/io/xpipe/app/util/HostHelper.java | 13 +++++++++++++ dist/changelogs/18.0.md | 2 ++ 2 files changed, 15 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/util/HostHelper.java b/app/src/main/java/io/xpipe/app/util/HostHelper.java index 12f5543fa..4dc63dde3 100644 --- a/app/src/main/java/io/xpipe/app/util/HostHelper.java +++ b/app/src/main/java/io/xpipe/app/util/HostHelper.java @@ -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(); + } } diff --git a/dist/changelogs/18.0.md b/dist/changelogs/18.0.md index b569cd67b..5fb242d93 100644 --- a/dist/changelogs/18.0.md +++ b/dist/changelogs/18.0.md @@ -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