summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
-rw-r--r--Swift/QtUI/QtSwift.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index 8de5d70..f1ad38e 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -446,34 +446,34 @@ ClientOptions QtSwift::parseClientOptions(const std::string& optionString) {
446 std::string stringVal; 446 std::string stringVal;
447 std::vector<std::string> segments = String::split(optionString, ','); 447 std::vector<std::string> segments = String::split(optionString, ',');
448 448
449 PARSE_BOOL(useStreamCompression, 1); 449 PARSE_BOOL(useStreamCompression, 1)
450 PARSE_INT_RAW(-1); 450 PARSE_INT_RAW(-1)
451 switch (intVal) { 451 switch (intVal) {
452 case 1: result.useTLS = ClientOptions::NeverUseTLS; break; 452 case 1: result.useTLS = ClientOptions::NeverUseTLS; break;
453 case 2: result.useTLS = ClientOptions::UseTLSWhenAvailable; break; 453 case 2: result.useTLS = ClientOptions::UseTLSWhenAvailable; break;
454 case 3: result.useTLS = ClientOptions::RequireTLS; break; 454 case 3: result.useTLS = ClientOptions::RequireTLS; break;
455 default:; 455 default:;
456 } 456 }
457 PARSE_BOOL(allowPLAINWithoutTLS, 0); 457 PARSE_BOOL(allowPLAINWithoutTLS, 0)
458 PARSE_BOOL(useStreamResumption, 0); 458 PARSE_BOOL(useStreamResumption, 0)
459 PARSE_BOOL(useAcks, 1); 459 PARSE_BOOL(useAcks, 1)
460 PARSE_STRING(manualHostname); 460 PARSE_STRING(manualHostname)
461 PARSE_INT(manualPort, -1); 461 PARSE_INT(manualPort, -1)
462 PARSE_INT_RAW(-1); 462 PARSE_INT_RAW(-1)
463 switch (intVal) { 463 switch (intVal) {
464 case 1: result.proxyType = ClientOptions::NoProxy; break; 464 case 1: result.proxyType = ClientOptions::NoProxy; break;
465 case 2: result.proxyType = ClientOptions::SystemConfiguredProxy; break; 465 case 2: result.proxyType = ClientOptions::SystemConfiguredProxy; break;
466 case 3: result.proxyType = ClientOptions::SOCKS5Proxy; break; 466 case 3: result.proxyType = ClientOptions::SOCKS5Proxy; break;
467 case 4: result.proxyType = ClientOptions::HTTPConnectProxy; break; 467 case 4: result.proxyType = ClientOptions::HTTPConnectProxy; break;
468 } 468 }
469 PARSE_STRING(manualProxyHostname); 469 PARSE_STRING(manualProxyHostname)
470 PARSE_INT(manualProxyPort, -1); 470 PARSE_INT(manualProxyPort, -1)
471 PARSE_URL(boshURL); 471 PARSE_URL(boshURL)
472 PARSE_URL(boshHTTPConnectProxyURL); 472 PARSE_URL(boshHTTPConnectProxyURL)
473 PARSE_SAFE_STRING(boshHTTPConnectProxyAuthID); 473 PARSE_SAFE_STRING(boshHTTPConnectProxyAuthID)
474 PARSE_SAFE_STRING(boshHTTPConnectProxyAuthPassword); 474 PARSE_SAFE_STRING(boshHTTPConnectProxyAuthPassword)
475 PARSE_BOOL(tlsOptions.schannelTLS1_0Workaround, false); 475 PARSE_BOOL(tlsOptions.schannelTLS1_0Workaround, false)
476 PARSE_BOOL(singleSignOn, false); 476 PARSE_BOOL(singleSignOn, false)
477 477
478 return result; 478 return result;
479} 479}