Skip to content

Commit

Permalink
Merge pull request #9343 from RocketChat/hotfix/ldap-tls
Browse files Browse the repository at this point in the history
[FIX] LDAP TLS not working in some cases
  • Loading branch information
rodrigok authored Jan 5, 2018
2 parents 84453b3 + f0f90e0 commit 5d1b628
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/rocketchat-cors/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import _ from 'underscore';

import url from 'url';

import tls from 'tls';
// FIX For TLS error see more here https://github.com/RocketChat/Rocket.Chat/issues/9316
// TODO: Remove after NodeJS fix it, more information https://github.com/nodejs/node/issues/16196 https://github.com/nodejs/node/pull/16853
tls.DEFAULT_ECDH_CURVE = 'auto';

WebApp.rawConnectHandlers.use(Meteor.bindEnvironment(function(req, res, next) {
if (req._body) {
return next();
Expand Down

0 comments on commit 5d1b628

Please sign in to comment.