From 3e9e7555ef88ca42f3fa949473135d50096e28fc Mon Sep 17 00:00:00 2001 From: Ingo Gottwald Date: Sat, 7 Sep 2019 22:25:04 +0200 Subject: Fix build (#2740) Build was broken with commit 50961ec. --- modules/caddyhttp/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp') 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 } } -- cgit v1.2.3