Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tdesveaux committed Jul 25, 2024
1 parent 377fc65 commit 52d26b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/dave/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ func main() {
Handler: wdHandler,
}

var tls_config *tls.Config
var tlsConfig *tls.Config
if config.TLS != nil {
var secure_ciphers []uint16
for _, cipher_suite := range tls.CipherSuites() {
if !cipher_suite.Insecure {
secure_ciphers = append(secure_ciphers, cipher_suite.ID)
var secureCiphers []uint16
for _, cipherSuite := range tls.CipherSuites() {
if !cipherSuite.Insecure {
secureCiphers = append(secureCiphers, cipherSuite.ID)
}
}
tls_config = &tls.Config{
CipherSuites: secure_ciphers,
tlsConfig = &tls.Config{
CipherSuites: secureCiphers,
MinVersion: tls.VersionTLS12,
}
}
Expand All @@ -68,7 +68,7 @@ func main() {
connAddr := fmt.Sprintf("%s:%s", config.Address, config.Port)
server := http.Server{
Addr: connAddr,
TLSConfig: tls_config,
TLSConfig: tlsConfig,
}

if config.TLS != nil {
Expand Down

0 comments on commit 52d26b9

Please sign in to comment.