()
| 618 | } |
| 619 | |
| 620 | func (s *Server) hasTLSClientAuth() bool { |
| 621 | return slices.ContainsFunc(s.TLSConnPolicies, func(cp *caddytls.ConnectionPolicy) bool { |
| 622 | return cp.ClientAuthentication != nil && cp.ClientAuthentication.Active() |
| 623 | }) |
| 624 | } |
| 625 | |
| 626 | // findLastRouteWithHostMatcher returns the index of the last route |
| 627 | // in the server which has a host matcher. Used during Automatic HTTPS |