diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 704a1750..ef281db6 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -255,7 +255,7 @@ WHITE [ \t]
   return IP4;
 }
 
-{XIGIT}{2}(:{XIGIT}{2}|{XIGIT}{2}){15,} {
+{XIGIT}{2}((:{XIGIT}{2}){15}|{XIGIT}{30}) {
   char *s = yytext;
   size_t len = 0, i;
   struct bytestring *bytes;
