Skip to content

Commit

Permalink
chore(run): uncommented SSL_VERIFYPEER
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantkatia committed Aug 17, 2021
1 parent 73f6e41 commit 7011a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Promise<{httpCode: number; totalTime: number; data: string}> => new Promise(reso

// TODO:: Uncomment the below IF Statements
// if (site.__dangerous__insecure || site.__dangerous__disable_verify_peer)
curl.setOpt('SSL_VERIFYPEER', false)
// if (site.__dangerous__insecure || site.__dangerous__disable_verify_host)
curl.setOpt('SSL_VERIFYHOST', false)
curl.setOpt('SSL_VERIFYPEER', false)
if (site.__dangerous__insecure || site.__dangerous__disable_verify_host)
curl.setOpt('SSL_VERIFYHOST', false)
curl.setOpt('FOLLOWLOCATION', 1)
curl.setOpt('MAXREDIRS', Number.isInteger(site.maxRedirects) ? Number(site.maxRedirects) : 3)
curl.setOpt('USERAGENT', 'Pabio Bot')
Expand Down

0 comments on commit 7011a2c

Please sign in to comment.