From 7413fc5c970a8a45d08c57e604748b9e58dbe3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Lebel?= Date: Mon, 21 Jul 2014 14:50:15 +0200 Subject: [PATCH] ssl was actived for all connexions https://github.com/fotonauts/MongoHub-Mac/issues/124 --- Sources/ConnectionWindow/MHConnectionWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ConnectionWindow/MHConnectionWindowController.m b/Sources/ConnectionWindow/MHConnectionWindowController.m index 553d57ce..3af59939 100644 --- a/Sources/ConnectionWindow/MHConnectionWindowController.m +++ b/Sources/ConnectionWindow/MHConnectionWindowController.m @@ -272,7 +272,7 @@ - (void)connectToServer } } NSAssert(ip != nil, @"need an ip"); - uri = [NSString stringWithFormat:@"mongodb://%@%@/%@?ssl=%@", auth, ip, self.connectionStore.defaultdb, self.connectionStore.usessl?@"true":@"false"]; + uri = [NSString stringWithFormat:@"mongodb://%@%@/%@?ssl=%@", auth, ip, self.connectionStore.defaultdb, self.connectionStore.usessl.boolValue?@"true":@"false"]; self.client = [MODClient clientWihtURLString:uri]; self.client.readPreferences = [MODReadPreferences readPreferencesWithReadMode:self.connectionStore.defaultReadMode]; self.statusViewController.client = self.client;