summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-09-20 12:11:14 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-09-20 12:11:14 (GMT)
commit36ab1556313fe42a77d38d056ace0bd9ae6ce573 (patch)
treebc7f344a68583166f9d4c924f0b56a80aca58624
parenta1fc89586ddfbaccca5fb1ed17f9d62137be25a0 (diff)
downloadswift-36ab1556313fe42a77d38d056ace0bd9ae6ce573.zip
swift-36ab1556313fe42a77d38d056ace0bd9ae6ce573.tar.bz2
In Eagle mode, require TLS
-rw-r--r--Swift/Controllers/MainController.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 2690343..24c5303 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -467,6 +467,7 @@ void MainController::performLoginFromCachedCredentials() {
}
ClientOptions clientOptions;
clientOptions.forgetPassword = eagleMode_;
+ clientOptions.useTLS = eagleMode_ ? ClientOptions::RequireTLS : ClientOptions::UseTLSWhenAvailable;
client_->connect(clientOptions);
}