Merge pull request #2159 from thelounge/xpaw/ecdh-auto-curves
Fix default ecdh curve for better compatibility
This commit is contained in:
commit
c3ed4ebc5e
@ -11,6 +11,16 @@ const storage = require("../storage");
|
||||
|
||||
process.setMaxListeners(0);
|
||||
|
||||
// Fix ECDH curve client compatibility in Node v8/v9
|
||||
// This is fixed in Node 10, but The Lounge supports LTS versions
|
||||
// https://github.com/nodejs/node/issues/16196
|
||||
// https://github.com/nodejs/node/pull/16853
|
||||
const tls = require("tls");
|
||||
|
||||
if (tls.DEFAULT_ECDH_CURVE === "prime256v1") {
|
||||
tls.DEFAULT_ECDH_CURVE = "auto";
|
||||
}
|
||||
|
||||
module.exports = function(client, chan, msg) {
|
||||
if (!Helper.config.prefetch) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user