Ignore HTTPS errors

This commit is contained in:
Richard Patel
2018-11-18 00:37:30 +01:00
parent 4464f34779
commit 6793086c22
4 changed files with 12 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"bytes"
"crypto/tls"
"github.com/terorie/od-database-crawler/ds/redblackhash"
"github.com/terorie/od-database-crawler/fasturl"
"github.com/valyala/fasthttp"
@@ -13,7 +14,11 @@ import (
"time"
)
var client fasthttp.Client
var client = fasthttp.Client {
TLSConfig: &tls.Config{
InsecureSkipVerify: true,
},
}
func GetDir(j *Job, f *File) (links []fasturl.URL, err error) {
f.IsDir = true