summaryrefslogtreecommitdiff
path: root/src/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tftp.c')
-rw-r--r--src/tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tftp.c b/src/tftp.c
index 8bbaea0..caf077f 100644
--- a/src/tftp.c
+++ b/src/tftp.c
@@ -228,7 +228,8 @@ void tftp_request(struct listener *listen, time_t now)
#ifdef HAVE_DHCP
/* allowed interfaces are the same as for DHCP */
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
- if (tmp->name && wildcard_match(tmp->name, name))
+ if (tmp->name && (tmp->flags & (INAME_4 | INAME_6) == (INAME_4 | INAME_6)) &&
+ wildcard_match(tmp->name, name))
return;
#endif
}