1
0

simplify RFC-compat hostame spec

This commit is contained in:
Arpad Ryszka 2026-06-24 15:43:59 +02:00
parent c79518125b
commit 9f1a457c24

View File

@ -43,7 +43,7 @@ ipv6-zone:failpass = ipv6 "%25" zone-id; // RFC6874
registry-name-rfc:failpass = (unreserved | percent-encoded | subdelimiter)*; // all RFC chars allowed
dns-label:alias:failpass = (alpha | digit) ("-"* (alpha | digit)+)*;
domain-name:failpass = dns-label ("." dns-label)* "."?; // DNS compatible
hostname-rfc = ipv4 | "[" (ipv6 | ipv6-zone) "]" | registry-name-rfc;
hostname-rfc = registry-name-rfc;
hostname = ipv4 | "[" (ipv6 | ipv6-zone) "]" | domain-name;
port = digit*;
host-rfc:alias:failpass = hostname-rfc (":" port)?;