Check for rdp address

This commit is contained in:
crschnick committed 2026-04-13 16:30:43 +00:00
1 parent cb448e34f9
commit 87d069b901
1 file changed
+8 -3
@@ -163,10 +163,15 @@ public class MstscRdpClient implements ExternalApplicationType.PathApplication,
WindowsRegistry.HKEY_CURRENT_USER,
"Software\\Microsoft\\Terminal Server Client\\Servers\\localhost");
var localhost = configuration
var fullAddress = configuration
.getConfig()
.get("full address")
.orElseThrow()
.get("full address");
if (fullAddress.isEmpty()) {
return false;
}
var localhost = fullAddress
.get()
.getValue()
.startsWith("localhost");
if (localhost) {