From 36ab1556313fe42a77d38d056ace0bd9ae6ce573 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 20 Sep 2011 13:11:14 +0100
Subject: In Eagle mode, require TLS


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);
 }
 
-- 
cgit v0.10.2-6-g49f6