some more tls magic
This commit is contained in:
1 parent
961b90626f
commit
9513c373aa
1 file changed
+6
-1
+6
-1
@@ -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