mirror of
https://github.com/samhocevar/rinetd.git
synced 2025-03-22 15:50:08 +08:00
Allow DNS labels to start with an underscore.
This commit is contained in:
parent
a8ca595620
commit
44f973d9fd
@ -141,7 +141,7 @@ invalid_syntax = < (!eol .)+ > eol
|
|||||||
}
|
}
|
||||||
|
|
||||||
service = name
|
service = name
|
||||||
address = ipv4 | ipv6 | hostname # TODO: IPV6
|
address = ipv4 | ipv6 | hostname
|
||||||
pattern = [0-9*?]+ ('.' [0-9*?]+ ('.' [0-9*?]+ ('.' [0-9*?]+)?)?)?
|
pattern = [0-9*?]+ ('.' [0-9*?]+ ('.' [0-9*?]+ ('.' [0-9*?]+)?)?)?
|
||||||
number = digit+
|
number = digit+
|
||||||
|
|
||||||
@ -150,14 +150,15 @@ ipv6 = (hexdigit | ':')+ | '[' ipv6 ']'
|
|||||||
hostname = (label '.')* name '.'?
|
hostname = (label '.')* name '.'?
|
||||||
|
|
||||||
|
|
||||||
name = [a-zA-Z_] [-a-zA-Z0-9_]*
|
name = id ('-' | id | digit)*
|
||||||
label = [0-9]* name
|
label = (id | digit) ('-' | id | digit)* # DNS labels may have digits
|
||||||
filename = '"' [^"]+ '"'
|
filename = '"' [^"]+ '"'
|
||||||
| [^ \t\r\n]+
|
| [^ \t\r\n]+
|
||||||
|
|
||||||
- = [ \t]+
|
- = [ \t]+
|
||||||
digit = [0-9]
|
digit = [0-9]
|
||||||
hexdigit = [0-9a-fA-F]
|
hexdigit = [0-9a-fA-F]
|
||||||
|
id = [a-zA-Z_]
|
||||||
sol = { ++yy->currentLine; }
|
sol = { ++yy->currentLine; }
|
||||||
eol = '\r'? '\n' | eof
|
eol = '\r'? '\n' | eof
|
||||||
eof = '\0'
|
eof = '\0'
|
||||||
|
Loading…
Reference in New Issue
Block a user