Skip to content

Commit

Permalink
Add option to skip ssl cert verification
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Dec 17, 2019
1 parent c028c6c commit 8b8a46e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scan/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ func NewScanner(opt *Options) *Scanner {
}

if opt.SkipSSLVerification {
client.Transport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
client.Transport = http.DefaultTransport
}

return &Scanner{
Expand Down

0 comments on commit 8b8a46e

Please sign in to comment.