Skip to content

Commit

Permalink
don't use the wildcard anymore the on-demand tls feature
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Nov 1, 2024
1 parent 2a30eb8 commit 46d3d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (s *Service) createCertManager(hosts []string, options ServiceOptions) (Cer
// Ensure we're not trying to use Let's Encrypt to fetch a wildcard domain,
// as that is not supported with the challenge types that we use.
for _, host := range hosts {
if strings.Contains(host, "*") && options.TLSOnDemandUrl == "" {
if strings.Contains(host, "*") {
return nil, ErrorAutomaticTLSDoesNotSupportWildcards
}
}
Expand Down

0 comments on commit 46d3d38

Please sign in to comment.