summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-10-06 02:36:59 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-06 04:59:47 +0200
commitc5c3a22bccda5454775b48ad318a7fd4bf197f86 (patch)
treeef97b0adc90255c61c2387bdce4c45112291b780 /conf
parente83beb70bd14923cece5b35411606ade6fb8fbee (diff)
Conf: Bytestrings with hex: should use the same general format as ones without.
Either hex:01234567, or hex:01:23:45:67. No confusing formats like hex:0123:4567:ab:cdef, which looks like there is an implicit zero byte.
Diffstat (limited to 'conf')
-rw-r--r--conf/cf-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 0fa4628a..2f95f2e1 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -242,7 +242,7 @@ WHITE [ \t]
return IP4;
}
-({XIGIT}{2}){16,}|{XIGIT}{2}(:{XIGIT}{2}){15,}|hex:({XIGIT}{2}(:?{XIGIT}{2})*)? {
+({XIGIT}{2}){16,}|{XIGIT}{2}(:{XIGIT}{2}){15,}|hex:({XIGIT}{2}*|{XIGIT}{2}(:{XIGIT}{2})*) {
char *s = yytext;
struct adata *bs;