mirror of https://github.com/statping/statping
Merge pull request #482 from craftbyte/feature/tls-renegotiation
Set HTTPS TLS renegotiation to "once as client"pull/548/head
commit
2893218ed6
|
@ -5,7 +5,6 @@ import (
|
|||
"crypto/tls"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/ararog/timeago"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
|
@ -15,6 +14,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ararog/timeago"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -234,6 +235,7 @@ func HttpRequest(url, method string, content interface{}, headers []string, body
|
|||
TLSClientConfig: &tls.Config{
|
||||
InsecureSkipVerify: !verifySSL,
|
||||
ServerName: verifyHost,
|
||||
Renegotiation: tls.RenegotiateOnceAsClient,
|
||||
},
|
||||
DisableKeepAlives: true,
|
||||
ResponseHeaderTimeout: timeout,
|
||||
|
|
Loading…
Reference in New Issue