Skip to content

Commit

Permalink
[FIX] Set the DEFAULT_ECDH_CURVE to auto (#15245) (#15365)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlundgren authored and sampaiodiego committed Sep 13, 2019
1 parent 49d0e19 commit f0b676b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/rocketchat-mongo-config/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import tls from 'tls';

import { Mongo } from 'meteor/mongo';

// 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') {
const mongoOptions = JSON.parse(mongoOptionStr);
Expand Down

0 comments on commit f0b676b

Please sign in to comment.