aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.l
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-30 18:49:36 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-30 18:49:36 +0300
commitbd0ade804fff8e999b9fadd88452d1d5b5ba1ccb (patch)
tree0eb4de812e7a1d5d235234fbf76e3153f169a9e2 /src/cfg_file.l
parentbb1b1f7889abe5c98a7628ba82e07b70a2142658 (diff)
downloadrspamd-bd0ade804fff8e999b9fadd88452d1d5b5ba1ccb.tar.gz
rspamd-bd0ade804fff8e999b9fadd88452d1d5b5ba1ccb.zip
* Parse days and hours in time limits
Diffstat (limited to 'src/cfg_file.l')
-rw-r--r--src/cfg_file.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg_file.l b/src/cfg_file.l
index f3baff15d..822cab3fa 100644
--- a/src/cfg_file.l
+++ b/src/cfg_file.l
@@ -114,7 +114,7 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG;
[0-9]+ yylval.number=strtol(yytext, NULL, 10); return NUMBER;
-?[0-9]+\.?[0-9]* yylval.fract=strtod(yytext, NULL); return FRACT;
[0-9]+[kKmMgG]? yylval.limit=parse_limit(yytext); return SIZELIMIT;
-[0-9]+[sS]|[0-9]+[mM][sS] yylval.seconds=parse_seconds(yytext); return SECONDS;
+[0-9]+[mMsShHdD]? yylval.seconds=parse_seconds(yytext); return SECONDS;
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} yylval.string=strdup(yytext); return IPADDR;
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\/[0-9]{1,2} yylval.string=strdup(yytext); return IPNETWORK;
[*a-zA-Z0-9.-]+:[0-9]{1,5} yylval.string=strdup(yytext); return HOSTPORT;