luacall_axfr_filter_t d_axfr_filter;
luacall_prequery_t d_prequery;
};
-std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, const DNSName& qname, const DNSRecord& zone_record,
+std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, const DNSName& query, const DNSRecord& zone_record,
const DNSName& zone, int zoneid, const DNSPacket& dnsp, uint16_t qtype, unique_ptr<AuthLua4>& LUA);
lua.writeFunction("createForward", []() {
static string allZerosIP{"0.0.0.0"};
DNSName record_name{s_lua_record_ctx->zone_record.d_name};
- if (record_name.isWildcard() == false) {
+ if (!record_name.isWildcard()) {
return allZerosIP;
}
record_name.chopOff();
lua.writeFunction("createForward6", []() {
static string allZerosIP{"::"};
DNSName record_name{s_lua_record_ctx->zone_record.d_name};
- if (record_name.isWildcard() == false) {
+ if (!record_name.isWildcard()) {
return allZerosIP;
}
record_name.chopOff();