mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-02 19:36:48 +00:00
Fix bug: "interfaces=+" not working
The logic was clobbered back in June in a refactor by Daniel.
This commit is contained in:
parent
a1cc415a4f
commit
c3ef89acc1
@ -803,14 +803,9 @@ overlay_interface_register(char *name,
|
|||||||
|
|
||||||
/* See if the interface is listed in the filter */
|
/* See if the interface is listed in the filter */
|
||||||
me = NULL;
|
me = NULL;
|
||||||
r = interface_filter;
|
for (r = interface_filter; r && !me; r = r->next)
|
||||||
while(r) {
|
if (r->namespec[0] == '\0' || strcasecmp(name, r->namespec) == 0)
|
||||||
if (!strcasecmp(name, r->namespec))
|
|
||||||
me = r;
|
me = r;
|
||||||
|
|
||||||
r = r->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (me == NULL || me->excludeP) {
|
if (me == NULL || me->excludeP) {
|
||||||
if (debug & DEBUG_OVERLAYINTERFACES)
|
if (debug & DEBUG_OVERLAYINTERFACES)
|
||||||
DEBUGF("Interface %s is not interesting.",name);
|
DEBUGF("Interface %s is not interesting.",name);
|
||||||
|
Loading…
Reference in New Issue
Block a user