summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index c1d2683..885ba0b 100644
--- a/modules/caddyhttp/server.go
+++ b/modules/caddyhttp/server.go
@@ -183,7 +183,7 @@ func (s *Server) listenersUseAnyPortOtherThan(otherPort int) bool {
func (s *Server) hasTLSClientAuth() bool {
for _, cp := range s.TLSConnPolicies {
- if cp.Active() {
+ if cp.ClientAuthentication != nil && cp.ClientAuthentication.Active() {
return true
}
}