diff options
author | Ingo Gottwald <in.gottwald@gmail.com> | 2019-09-07 22:25:04 +0200 |
---|---|---|
committer | Matt Holt <mholt@users.noreply.github.com> | 2019-09-07 14:25:04 -0600 |
commit | 3e9e7555ef88ca42f3fa949473135d50096e28fc (patch) | |
tree | 1909c266c0c9741bcfeeaf9e5a624939c696d7ed | |
parent | 3ba9e143a2fbfd6f8c882d5fae51f43099c0ad66 (diff) |
Fix build (#2740)
Build was broken with commit 50961ec.
-rw-r--r-- | modules/caddyhttp/server.go | 2 |
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 } } |