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 /Swift/Controllers
parenta1fc89586ddfbaccca5fb1ed17f9d62137be25a0 (diff)
downloadswift-contrib-36ab1556313fe42a77d38d056ace0bd9ae6ce573.zip
swift-contrib-36ab1556313fe42a77d38d056ace0bd9ae6ce573.tar.bz2
In Eagle mode, require TLS
Diffstat (limited to 'Swift/Controllers')
-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
@@ -461,18 +461,19 @@ void MainController::performLoginFromCachedCredentials() {
/* In case we're in the middle of another login, make sure they don't overlap */
client_->disconnect();
}
systemTrayController_->setConnecting();
if (rosterController_) {
rosterController_->getWindow()->setConnecting();
}
ClientOptions clientOptions;
clientOptions.forgetPassword = eagleMode_;
+ clientOptions.useTLS = eagleMode_ ? ClientOptions::RequireTLS : ClientOptions::UseTLSWhenAvailable;
client_->connect(clientOptions);
}
void MainController::handleDisconnected(const boost::optional<ClientError>& error) {
if (eagleMode_) {
purgeCachedCredentials();
}
if (quitRequested_) {
resetClient();