mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Load default listen-on[-v6] values from config.c
Stop using ns_listenlist_default() to set the default listen-on and listen-on-v6 configuration. Instead, configure these options using the default values in config.c.
This commit is contained in:
@@ -85,8 +85,6 @@ scan_interfaces(void *arg) {
|
||||
int
|
||||
setup_server(void **state) {
|
||||
isc_result_t result;
|
||||
ns_listenlist_t *listenon = NULL;
|
||||
in_port_t port = 5300 + isc_random8();
|
||||
|
||||
setup_managers(state);
|
||||
|
||||
@@ -103,14 +101,6 @@ setup_server(void **state) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
result = ns_listenlist_default(mctx, port, true, AF_INET, &listenon);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ns_interfacemgr_setlistenon4(interfacemgr, listenon);
|
||||
ns_listenlist_detach(&listenon);
|
||||
|
||||
isc_loop_setup(mainloop, scan_interfaces, NULL);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user