Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
Add support for skipping expired ssl certs if https is used
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoffinet committed Aug 15, 2018
1 parent 594d835 commit 263afef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/qflow/qflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package qflow

import (
"bytes"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -49,7 +50,10 @@ func ReplicateChannel(endpoint *Endpoint) {
continue
}

client := &http.Client{Timeout: endpoint.Timeout}
transport := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // ignore expired SSL certificates
}
client := &http.Client{Transport: transport, Timeout: endpoint.Timeout}
proxyRes, err := client.Do(proxyReq)
if err != nil {
log.Debugf("error: %s\n", err)
Expand Down

0 comments on commit 263afef

Please sign in to comment.