do not listen on interfaces that are not marked 'up'

This commit is contained in:
Andreas Gustafsson 2000-02-07 18:47:43 +00:00
parent 461a00bbde
commit e55b792a68

View file

@ -481,6 +481,9 @@ do_ipv4(ns_interfacemgr_t *mgr) {
if (interface.address.family != AF_INET)
continue;
if ((interface.flags & INTERFACE_F_UP) == 0)
continue;
for (le = ISC_LIST_HEAD(mgr->listenon->elts);
le != NULL;
le = ISC_LIST_NEXT(le, link))