mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 00:12:04 -04:00
1083. [bug] The default control channel listened on the
wildcard adress, not the loopback as documented.
This commit is contained in:
parent
1418d7292d
commit
5cd7e9d4db
2 changed files with 11 additions and 3 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1083. [bug] The default control channel listened on the
|
||||
wildcard adress, not the loopback as documented.
|
||||
|
||||
1082. [bug] The -g option to named incorrectly caused logging
|
||||
to be sent to syslog in addition to stderr.
|
||||
[RT #1974]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: controlconf.c,v 1.34 2001/10/19 21:00:12 gson Exp $ */
|
||||
/* $Id: controlconf.c,v 1.35 2001/10/31 19:35:19 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
#include <isc/buffer.h>
|
||||
#include <isc/event.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/net.h>
|
||||
#include <isc/netaddr.h>
|
||||
#include <isc/result.h>
|
||||
#include <isc/stdtime.h>
|
||||
|
|
@ -1161,13 +1162,17 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
|
|||
isc_sockaddr_t addr;
|
||||
|
||||
if (i == 0) {
|
||||
struct in_addr localhost;
|
||||
|
||||
if (isc_net_probeipv4() != ISC_R_SUCCESS)
|
||||
continue;
|
||||
isc_sockaddr_any(&addr);
|
||||
localhost.s_addr = htonl(INADDR_LOOPBACK);
|
||||
isc_sockaddr_fromin(&addr, &localhost, 0);
|
||||
} else {
|
||||
if (isc_net_probeipv6() != ISC_R_SUCCESS)
|
||||
continue;
|
||||
isc_sockaddr_any6(&addr);
|
||||
isc_sockaddr_fromin6(&addr,
|
||||
&in6addr_loopback, 0);
|
||||
}
|
||||
isc_sockaddr_setport(&addr, NS_CONTROL_PORT);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue