Commit 42017c85 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac1104] adjusted resolver interface to use TSIG for ACL. right now

it's always NULL because it cannot be configured with TSIG keys.
it should be done in a separate ticket.
parent fafb108c
......@@ -520,7 +520,8 @@ ResolverImpl::processNormalQuery(const IOMessage& io_message,
const Client client(io_message);
const BasicAction query_action(
getQueryACL().execute(acl::dns::RequestContext(
client.getRequestSourceIPAddress())));
client.getRequestSourceIPAddress(),
query_message->getTSIGRecord())));
if (query_action == isc::acl::REJECT) {
LOG_INFO(resolver_logger, RESOLVER_QUERY_REJECTED)
.arg(question->getName()).arg(qtype).arg(qclass).arg(client);
......
......@@ -72,7 +72,8 @@ protected:
IOSocket::getDummyUDPSocket(),
*endpoint));
client.reset(new Client(*query_message));
request.reset(new RequestContext(client->getRequestSourceIPAddress()));
request.reset(new RequestContext(client->getRequestSourceIPAddress(),
NULL));
return (*request);
}
void invalidTest(const string &JSON, const string& name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment