summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIngo Gottwald <in.gottwald@gmail.com>2019-09-07 22:25:04 +0200
committerMatt Holt <mholt@users.noreply.github.com>2019-09-07 14:25:04 -0600
commit3e9e7555ef88ca42f3fa949473135d50096e28fc (patch)
tree1909c266c0c9741bcfeeaf9e5a624939c696d7ed /modules
parent3ba9e143a2fbfd6f8c882d5fae51f43099c0ad66 (diff)
Fix build (#2740)
Build was broken with commit 50961ec.
Diffstat (limited to 'modules')
-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
}
}