This way it correctly handles wildcards.
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/lib-dns \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
-DPKG_RUNDIR=\""$(rundir)"\" \
#include "master-service-settings.h"
#include "config-parser.h"
#include "config-filter.h"
+#include "dns-util.h"
struct config_filter_context {
pool_t pool;
if (mask->local_name != NULL) {
if (filter->local_name == NULL)
return FALSE;
- if (strcasecmp(filter->local_name, mask->local_name) != 0)
+ if (dns_match_wildcard(filter->local_name, mask->local_name) != 0)
return FALSE;
}
/* FIXME: it's not comparing full masks */