File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ func main() {
5050 Handler : wdHandler ,
5151 }
5252
53- var tls_config * tls.Config
53+ var tlsConfig * tls.Config
5454 if config .TLS != nil {
55- var secure_ciphers []uint16
56- for _ , cipher_suite := range tls .CipherSuites () {
57- if ! cipher_suite .Insecure {
58- secure_ciphers = append (secure_ciphers , cipher_suite .ID )
55+ var secureCiphers []uint16
56+ for _ , cipherSuite := range tls .CipherSuites () {
57+ if ! cipherSuite .Insecure {
58+ secureCiphers = append (secureCiphers , cipherSuite .ID )
5959 }
6060 }
61- tls_config = & tls.Config {
62- CipherSuites : secure_ciphers ,
61+ tlsConfig = & tls.Config {
62+ CipherSuites : secureCiphers ,
6363 MinVersion : tls .VersionTLS12 ,
6464 }
6565 }
@@ -68,7 +68,7 @@ func main() {
6868 connAddr := fmt .Sprintf ("%s:%s" , config .Address , config .Port )
6969 server := http.Server {
7070 Addr : connAddr ,
71- TLSConfig : tls_config ,
71+ TLSConfig : tlsConfig ,
7272 }
7373
7474 if config .TLS != nil {
You can’t perform that action at this time.
0 commit comments