Adrian Dewhurst 9c04e30735 util/dnsname: do not allow labels starting with a digit
This disallows labels that start with digits (as per RFC 1035 section
2.3.1). The invalid character error text is also improved so that UTF-8
sequences are properly copied to the error rather than an encoding of
the first byte.

Updates #13858

Change-Id: Ib3fea46559918e7bba6b11c1ca33ede61755bd52
Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
2024-10-18 12:17:14 -04:00
..
2024-06-05 15:24:04 -07:00
2024-04-16 15:32:38 -07:00
2023-03-04 12:24:55 -08:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-05-17 20:01:40 -04:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-06-05 15:24:04 -07:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00
2024-04-16 15:32:38 -07:00