short isocode = 0;
if (p != NULL && ipt != NULL) {
try {
- isocode = ipt->lookup(p->getRemote());
+ isocode = ipt->lookup(p->getRealRemote().toString());
}
catch(ParsePrefixException &e) { // Ignore
L << Logger::Notice << logprefix << "Unable to parse IP '"
- << p->getRemote() << " as IPv4 prefix" << endl;
+ << p->getRealRemote().toString() << " as IPv4 prefix" << endl;
}
}
L << Logger::Debug << logprefix << "Serving " << qdomain << " "
<< rr->qtype.getName() << " " << target << " to "
- << (p != NULL ? p->getRemote() : "(unknown)")
+ << (p != NULL ? p->getRealRemote().toString() : "(unknown)")
<< " (" << isocode << ")" << endl;
answers.push_back(rr);
short isocode = 0;
if (p != NULL) {
try {
- isocode = ipt->lookup(p->getRemote());
+ isocode = ipt->lookup(p->getRealRemote().toString());
}
catch(ParsePrefixException &e) {} // Ignore
}