Skip to content

Commit

Permalink
Set the DEFAULT_ECDH_CURVE to auto (RocketChat#15245)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlundgren committed Sep 13, 2019
1 parent da12199 commit b3b9944
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/rocketchat-mongo-config/server/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { Mongo } from 'meteor/mongo';
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
// This is fixed in Node 10, but this supports LTS versions
tls.DEFAULT_ECDH_CURVE = 'auto';

const mongoOptionStr = process.env.MONGO_OPTIONS;
if (typeof mongoOptionStr !== 'undefined') {
Expand Down

0 comments on commit b3b9944

Please sign in to comment.