mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-09 00:21:24 +00:00
Check for rdp address
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user