Skip to content

Commit e39c652

Browse files
Renamed variable as askeck from @vishr
1 parent 3ee42cd commit e39c652

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tls.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ func init() {
1313

1414
// setupTLSConfig builds the TLS configuration
1515
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
1818

1919
if a.TLS.Secured {
20-
ret.MinVersion = tls.VersionTLS12
21-
ret.CipherSuites = []uint16{
20+
cfg.MinVersion = tls.VersionTLS12
21+
cfg.CipherSuites = []uint16{
2222
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
2323
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
2424
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
@@ -29,7 +29,7 @@ func (a *Armor) setupTLSConfig() *tls.Config {
2929
}
3030
}
3131

32-
return ret
32+
return cfg
3333
}
3434

3535
// GetConfigForClient implements the Config.GetClientCertificate callback

0 commit comments

Comments
 (0)