From eb0bf411afbaf27d0469ec421eeec7d5d1305f71 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 16 Aug 2017 11:31:33 +0200 Subject: [PATCH] Do not add quotes to client hostname. --- .../java/com/freerdp/freerdpcore/services/LibFreeRDP.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/services/LibFreeRDP.java b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/services/LibFreeRDP.java index e289d0cd2..8b1dcf169 100644 --- a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/services/LibFreeRDP.java +++ b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/services/LibFreeRDP.java @@ -127,7 +127,7 @@ public class LibFreeRDP { final String clientName = ApplicationSettingsActivity.getClientName(context); if (!clientName.isEmpty()) { - args.add("/client-hostname:\"" + clientName + "\""); + args.add("/client-hostname:" + clientName); } String certName = ""; if (bookmark.getType() != BookmarkBase.TYPE_MANUAL) { @@ -252,6 +252,7 @@ public class LibFreeRDP { args.add("/microphone"); } + args.add("/cert-ignore"); args.add("/log-level:" + debug.getDebugLevel()); String[] arrayArgs = args.toArray(new String[args.size()]); return freerdp_parse_arguments(inst, arrayArgs); @@ -269,7 +270,7 @@ public class LibFreeRDP { final String clientName = ApplicationSettingsActivity.getClientName(context); if (!clientName.isEmpty()) { - args.add("/client-hostname:\"" + clientName + "\""); + args.add("/client-hostname:" + clientName); } // Parse hostname and port. Set to 'v' argument