Skip to content

Commit 6dc89a0

Browse files
committed
Fixes: #11821
1 parent 8171d95 commit 6dc89a0

File tree

1 file changed

+4
-4
lines changed
  • services/console-proxy/rdpconsole/src/main/java/common

1 file changed

+4
-4
lines changed

services/console-proxy/rdpconsole/src/main/java/common/Client.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,16 @@ private Element setMainElementAndAddressBasedOnProtocol(Protocol protocol, SSLSt
299299

300300
private Protocol parseOptions(String[] args) {
301301
String protocolName = (args.length > 0) ? args[0] : "";
302-
Protocol protocol = Protocol.NONE;
302+
Protocol protocol;
303303

304304
Option[] options;
305-
if (protocolName.equals("vnc")) {
305+
if (protocolName.equals(Protocol.VNC.name().toLowerCase())) {
306306
protocol = Protocol.VNC;
307307
options = join(commonOptions, vncOptions);
308-
} else if (protocolName.equals("rdp")) {
308+
} else if (protocolName.equals(Protocol.RDP.name().toLowerCase())) {
309309
protocol = Protocol.RDP;
310310
options = join(commonOptions, rdpOptions);
311-
} else if (protocolName.equals("hyperv")) {
311+
} else if (protocolName.equals(Protocol.HYPERV.name().toLowerCase())) {
312312
protocol = Protocol.HYPERV;
313313
options = join(commonOptions, hyperVOptions);
314314
} else {

0 commit comments

Comments
 (0)