MINOR: pattern: forbid dns resolutions
This patch adds the flags "-n" on the acl parser. the flag "-n" forbif
the DNS resolutions. The maps have always the dns resolutions disabled.
diff --git a/src/pattern.c b/src/pattern.c
index 22aa9d4..86f94db 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -405,7 +405,7 @@
*/
int pat_parse_ip(const char *text, struct pattern *pattern, char **err)
{
- if (str2net(text, global.mode & MODE_STARTING,
+ if (str2net(text, !(pattern->flags & PAT_F_NO_DNS) && (global.mode & MODE_STARTING),
&pattern->val.ipv4.addr, &pattern->val.ipv4.mask)) {
pattern->type = SMP_T_IPV4;
return 1;