We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 336bc51 commit c341badCopy full SHA for c341bad
tls.go
@@ -10,8 +10,10 @@ import (
10
func (a *Armor) GetConfigForClient(clientHelloInfo *tls.ClientHelloInfo) (*tls.Config, error) {
11
// Get the host from the hello info
12
host := a.Hosts[clientHelloInfo.ServerName]
13
- if len(host.ClientCAs) == 0 {
14
- return nil, nil
+ // If the host or the clientCAs are not configured the function
+ // returns the default TLS configuration
15
+ if host == nil || len(host.ClientCAs) == 0 {
16
+ return a.setupTLSConfig(), nil
17
}
18
19
// Use existing host config if exist
0 commit comments