some more tls magic
This commit is contained in:
@@ -27,7 +27,12 @@ func NewDMClient(token, dmURL, device string) *Client {
|
|||||||
restyClient := resty.New()
|
restyClient := resty.New()
|
||||||
restyClient.SetTLSClientConfig(&tls.Config{
|
restyClient.SetTLSClientConfig(&tls.Config{
|
||||||
MinVersion: tls.VersionTLS12,
|
MinVersion: tls.VersionTLS12,
|
||||||
MaxVersion: tls.VersionTLS12,
|
CipherSuites: []uint16{
|
||||||
|
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
|
||||||
|
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
||||||
|
tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
|
||||||
|
tls.TLS_RSA_WITH_AES_128_GCM_SHA256,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
return &Client{
|
return &Client{
|
||||||
|
|||||||
Reference in New Issue
Block a user