Auth TLS: Improve redirect RegEx.

This commit is contained in:
James Strong 2024-10-28 18:43:54 -04:00 committed by Marco Ebert
parent af095e4216
commit d51e51ea2e

View file

@ -42,7 +42,7 @@ const (
var ( var (
authVerifyClientRegex = regexp.MustCompile(`^(on|off|optional|optional_no_ca)$`) authVerifyClientRegex = regexp.MustCompile(`^(on|off|optional|optional_no_ca)$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]*(:\d+)?/[A-Za-z0-9\-.]*)?$`) redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]+(:\d+)?)?(/[A-Za-z0-9\-.]+)*/?$`)
) )
var authTLSAnnotations = parser.Annotation{ var authTLSAnnotations = parser.Annotation{