Projects STRLCPY csprecon Commits 6112b90a
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    go.mod
    skipped 12 lines
    13 13  require (
    14 14   github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
    15 15   github.com/aymerick/douceur v0.2.0 // indirect
    16  - github.com/edoardottt/golazy v0.1.2-dev
     16 + github.com/edoardottt/golazy v0.1.3-dev
    17 17   github.com/gorilla/css v1.0.0 // indirect
    18 18   github.com/json-iterator/go v1.1.10 // indirect
    19 19   github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
    skipped 11 lines
  • ■ ■ ■ ■ ■ ■
    go.sum
    skipped 9 lines
    10 10  github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
    11 11  github.com/edoardottt/golazy v0.1.2-dev h1:P2MEUKVKJi42DPihjmjddinw2oALmGa6c20K1aouTNA=
    12 12  github.com/edoardottt/golazy v0.1.2-dev/go.mod h1:uZRa3TRYvQSxmbAc7O9+3RelkMu+ACbKiUoy+uPsGVM=
     13 +github.com/edoardottt/golazy v0.1.3-dev h1:RRnMtrc1Z5xkFXOfsXQNTN7qwmjcLZw49li7Bn5xWVA=
     14 +github.com/edoardottt/golazy v0.1.3-dev/go.mod h1:uZRa3TRYvQSxmbAc7O9+3RelkMu+ACbKiUoy+uPsGVM=
    13 15  github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
    14 16  github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
    15 17  github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
    skipped 59 lines
  • ■ ■ ■ ■ ■ ■
    pkg/csprecon/csp.go
    skipped 10 lines
    11 11   "github.com/edoardottt/golazy"
    12 12  )
    13 13   
     14 +var (
     15 + UserAgent = golazy.GenerateRandomUserAgent()
     16 +)
     17 + 
    14 18  const (
    15 19   TLSHandshakeTimeout = 10
    16 20   KeepAlive = 30
    skipped 10 lines
    27 31   if err != nil {
    28 32   return result, err
    29 33   }
     34 + 
     35 + req.Header.Add("User-Agent", UserAgent)
    30 36   
    31 37   resp, err := client.Do(req)
    32 38   if err != nil {
    skipped 36 lines
    69 75  func customClient(timeout int) *http.Client {
    70 76   transport := http.Transport{
    71 77   TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
     78 + Proxy: http.ProxyFromEnvironment,
    72 79   Dial: (&net.Dialer{
    73 80   Timeout: time.Duration(timeout) * time.Second,
    74 81   KeepAlive: KeepAlive * time.Second,
    skipped 28 lines
Please wait...
Page is in error, reload to recover