Commit 9379ce06e2b6bd0d5713c6980f2209de6acb4dd0

Authored by Adhidarma Hadiwinoto
1 parent 366f490322
Exists in master

ignore SSL validity

Showing 1 changed file with 2 additions and 0 deletions Inline Diff

1 "use strict"; 1 "use strict";
2 2
3 process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
4
3 const config = require(__dirname + '/config.json'); 5 const config = require(__dirname + '/config.json');
4 const redbird = require('redbird')(config.server_options); 6 const redbird = require('redbird')(config.server_options);
5 7
6 const hostsCount = config.hosts.length; 8 const hostsCount = config.hosts.length;
7 for (let i=0; i < hostsCount; i++) { 9 for (let i=0; i < hostsCount; i++) {
8 let host = config.hosts[i] 10 let host = config.hosts[i]
9 if (!host.disable) { 11 if (!host.disable) {
10 redbird.register(host.host, host.target); 12 redbird.register(host.host, host.target);
11 } 13 }
12 } 14 }
13 15