summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.l b/src/config.l
index 404384e..9e82239 100644
--- a/src/config.l
+++ b/src/config.l
@@ -104,12 +104,12 @@ default { TOKEN(TOK_DEFAULT); }
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} {
UPDATE_LOCATION;
- if (!inet_pton(AF_INET, yytext, &yylval->addr)) {
+ if (!inet_pton(AF_INET, yytext, &yylval->addr4)) {
yylval->error = "invalid address";
return -1;
}
- return TOK_ADDR;
+ return TOK_ADDR4;
}
[;:\{\}] { UPDATE_LOCATION; return yytext[0]; }