2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Only print 'no IPv6 interfaces found' and 'no IPv4 interfaces found'

addresses on startup, not each time interfaces are scanned.
This commit is contained in:
Brian Wellington
2000-06-08 22:31:55 +00:00
parent 60a7475dd8
commit b00a764bc8
3 changed files with 10 additions and 8 deletions

View File

@@ -1063,8 +1063,8 @@ options_callback(dns_c_ctx_t *cctx, void *uap) {
static void
scan_interfaces(ns_server_t *server) {
ns_interfacemgr_scan(server->interfacemgr);
scan_interfaces(ns_server_t *server, isc_boolean_t verbose) {
ns_interfacemgr_scan(server->interfacemgr, verbose);
dns_aclenv_copy(&server->aclenv,
ns_interfacemgr_getaclenv(server->interfacemgr));
}
@@ -1079,7 +1079,7 @@ interface_timer_tick(isc_task_t *task, isc_event_t *event) {
UNUSED(task);
isc_event_free(&event);
RWLOCK(&server->conflock, isc_rwlocktype_write);
scan_interfaces(server);
scan_interfaces(server, ISC_FALSE);
RWUNLOCK(&server->conflock, isc_rwlocktype_write);
}
@@ -1214,7 +1214,7 @@ load_configuration(const char *filename, ns_server_t *server,
* to configure the query source, since the dispatcher we use might
* be shared with an interface.
*/
scan_interfaces(server);
scan_interfaces(server, ISC_TRUE);
/*
* Arrange for further interface scanning to occur periodically