From 80cbd0c9bd83fd0501b505f54ec8e29028894af5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 1 Nov 2012 11:04:39 +0100 Subject: Refactor bind address configuration --- src/config.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.l') 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]; } -- cgit v1.2.3