Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
certificates: fix handshake failure in node v8
Browse files Browse the repository at this point in the history
* See nodejs/node#16196 for further details
  about the cause.
  • Loading branch information
n-riesco committed May 18, 2018
1 parent 6d5b704 commit 103db20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/certificates.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import {getSetting, saveSetting} from './settings.js';
import * as fs from 'fs';
import fetch from 'node-fetch';

const https = require('https');
https.globalAgent.options.ecdhCurve = 'auto'; // fix default in node v8
const fetch = require('node-fetch');

import Logger from './logger';

import {fakeCerts} from '../test/backend/utils';
Expand Down

0 comments on commit 103db20

Please sign in to comment.