mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-07-01 09:01:47 +00:00
Accept IPv6 address as CN names
Expand the cnRegexp to also accept ipv6 addresses such as: * ::1 * 2a00:1450:400e:80e:: * 2a00:1450:400e:80e::200e Fixes: #37 Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
This commit is contained in:
parent
86af265dcd
commit
dc7452dbb8
@ -26,7 +26,7 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
cnRegexp = regexp.MustCompile("^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$")
|
||||
cnRegexp = regexp.MustCompile("^([A-Za-z0-9:][-A-Za-z0-9_.:]*)?[A-Za-z0-9:]$")
|
||||
)
|
||||
|
||||
type TLS struct {
|
||||
|
Loading…
Reference in New Issue
Block a user