From: Ensar Sarajčić Date: Wed, 5 Feb 2025 15:05:05 +0000 (+0100) Subject: Remove `pick` from `dnsdist-lua-bindings-protobuf.cc` X-Git-Tag: dnsdist-2.0.0-alpha1~111^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1349d20dec102ac503f2362cd592117e34bf18b;p=thirdparty%2Fpdns.git Remove `pick` from `dnsdist-lua-bindings-protobuf.cc` Co-authored-by: Miod Vallat --- diff --git a/pdns/dnsdistdist/dnsdist-lua-bindings-protobuf.cc b/pdns/dnsdistdist/dnsdist-lua-bindings-protobuf.cc index b6f6a49657..59ec33c33d 100644 --- a/pdns/dnsdistdist/dnsdist-lua-bindings-protobuf.cc +++ b/pdns/dnsdistdist/dnsdist-lua-bindings-protobuf.cc @@ -63,7 +63,7 @@ void setupLuaBindingsProtoBuf(LuaContext& luaCtx, bool client, bool configCheck) #endif /* HAVE_IPCIPHER */ /* ProtobufMessage */ - pick luaCtx.registerFunction("setTag", [](DNSDistProtoBufMessage& message, const std::string& strValue) { + luaCtx.registerFunction("setTag", [](DNSDistProtoBufMessage& message, const std::string& strValue) { message.addTag(strValue); }); luaCtx.registerFunction)>("setTagArray", [](DNSDistProtoBufMessage& message, const LuaArray& tags) {