File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ func init() {
13
13
14
14
// setupTLSConfig builds the TLS configuration
15
15
func (a * Armor ) setupTLSConfig () * tls.Config {
16
- ret := new (tls.Config )
17
- ret .GetConfigForClient = a .GetConfigForClient
16
+ cfg := new (tls.Config )
17
+ cfg .GetConfigForClient = a .GetConfigForClient
18
18
19
19
if a .TLS .Secured {
20
- ret .MinVersion = tls .VersionTLS12
21
- ret .CipherSuites = []uint16 {
20
+ cfg .MinVersion = tls .VersionTLS12
21
+ cfg .CipherSuites = []uint16 {
22
22
tls .TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 ,
23
23
tls .TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
24
24
tls .TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
@@ -29,7 +29,7 @@ func (a *Armor) setupTLSConfig() *tls.Config {
29
29
}
30
30
}
31
31
32
- return ret
32
+ return cfg
33
33
}
34
34
35
35
// GetConfigForClient implements the Config.GetClientCertificate callback
You can’t perform that action at this time.
0 commit comments