From: Bozhan Liang Date: Mon, 6 Jan 2025 12:41:54 +0000 (+0800) Subject: typo X-Git-Tag: dnsdist-2.0.0-alpha1~191^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=644694fdc71010ea39bfccee3034e556b8e50ed8;p=thirdparty%2Fpdns.git typo --- diff --git a/pdns/lua-auth4.hh b/pdns/lua-auth4.hh index 6d75072d2f..b9a90835b2 100644 --- a/pdns/lua-auth4.hh +++ b/pdns/lua-auth4.hh @@ -45,5 +45,5 @@ private: luacall_axfr_filter_t d_axfr_filter; luacall_prequery_t d_prequery; }; -std::vector> luaSynth(const std::string& code, const DNSName& qname, const DNSRecord& zone_record, +std::vector> 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& LUA); diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index a6286f4aa7..d5f7866f2f 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -918,7 +918,7 @@ static void setupLuaRecords(LuaContext& lua) // NOLINT(readability-function-cogn 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(); @@ -981,7 +981,7 @@ static void setupLuaRecords(LuaContext& lua) // NOLINT(readability-function-cogn 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();