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;