File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ func loadTLSConfig(settings *SessionSettings) (tlsConfig *tls.Config, err error)
6868 tlsConfig .ClientCAs = certPool
6969 tlsConfig .ClientAuth = tls .RequireAndVerifyClientCert
7070
71+ minVersion := "TLS12"
7172 if settings .HasSetting (config .SocketMinimumTLSVersion ) {
72- minVersion , err : = settings .Setting (config .SocketMinimumTLSVersion )
73+ minVersion , err = settings .Setting (config .SocketMinimumTLSVersion )
7374 if err != nil {
7475 return
7576 }
@@ -83,8 +84,6 @@ func loadTLSConfig(settings *SessionSettings) (tlsConfig *tls.Config, err error)
8384 tlsConfig .MinVersion = tls .VersionTLS11
8485 case "TLS12" :
8586 tlsConfig .MinVersion = tls .VersionTLS12
86- default :
87- tlsConfig .MinVersion = tls .VersionTLS12
8887 }
8988 }
9089
You can’t perform that action at this time.
0 commit comments