Skip SSL certificate validation on request

This commit is contained in:
freearhey 2021-01-19 15:53:22 +03:00
parent 26de140a3f
commit 407b7204bd
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const { program } = require('commander')
const helper = require('./helper')
const axios = require('axios')
const ProgressBar = require('progress')
const https = require('https')
program
.version('1.0.0', '-v, --version')
@ -19,7 +20,10 @@ const config = program.opts()
const instance = axios.create({
timeout: config.timeout,
maxContentLength: 5000
maxContentLength: 5000,
httpsAgent: new https.Agent({
rejectUnauthorized: false
})
})
let globalBuffer = []