Merge pull request #4092 from akallabeth/afreerdp_no_client_name_escape

Do not add quotes to client hostname.
This commit is contained in:
Bernhard Miklautz 2017-08-16 13:26:47 +02:00 committed by GitHub
commit ba9227d801

View File

@ -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