mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Allow [] in remote address, which fixes IPv6 support.
Reported by: simon
This commit is contained in:
parent
b2e054b0d4
commit
7e46ff5f4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246925
@ -74,7 +74,7 @@ sender { DP; return SENDER; }
|
||||
source { DP; return SOURCE; }
|
||||
timeout { DP; return TIMEOUT; }
|
||||
[0-9]+ { DP; yylval.num = atoi(yytext); return NUM; }
|
||||
\"[a-zA-Z0-9_/ !@#\$%\^\&\*\(\)\+\=\|\;\?\,\.\-\:]*\" { DP; yylval.str = strndup(yytext + 1, strlen(yytext) - 2); return STR; }
|
||||
\"[a-zA-Z0-9_/ !@#\$%\^\&\*\(\)\+\=\|\;\?\,\.\[\]\-\:]*\" { DP; yylval.str = strndup(yytext + 1, strlen(yytext) - 2); return STR; }
|
||||
\{ { DP; depth++; return OB; }
|
||||
\} { DP; depth--; return CB; }
|
||||
#.*$ /* ignore comments */;
|
||||
|
Loading…
Reference in New Issue
Block a user