mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 09:03:56 -04:00
Get query source address and port together
This commit is contained in:
parent
a2f3208f7f
commit
35393c5cfa
1 changed files with 1 additions and 4 deletions
|
|
@ -585,11 +585,8 @@ configure_server_querysource(dns_c_ctx_t *cctx, ns_server_t *server,
|
|||
|
||||
*dispatchp = NULL;
|
||||
|
||||
if (dns_c_ctx_getquerysourceaddr(cctx, &sa) != ISC_R_SUCCESS)
|
||||
if (dns_c_ctx_getquerysource(cctx, &sa) != ISC_R_SUCCESS)
|
||||
sa = any;
|
||||
if (dns_c_ctx_getquerysourceport(cctx, &port) != ISC_R_SUCCESS)
|
||||
port = 0;
|
||||
isc_sockaddr_setport(&sa, port);
|
||||
|
||||
/*
|
||||
* XXX We need to have separate query source options for v4 and v6,
|
||||
|
|
|
|||
Loading…
Reference in a new issue