});
luaCtx.writeFunction("NoRecurseAction", []() {
- warnlog("access to NoRecurseAction is deprecated, please use SetNoRecurseAction instead");
+ warnlog("access to NoRecurseAction is deprecated and will be removed in a future version, please use SetNoRecurseAction instead");
return std::shared_ptr<DNSAction>(new SetNoRecurseAction);
});
});
luaCtx.writeFunction("MacAddrAction", [](int code) {
- warnlog("access to MacAddrAction is deprecated, please use SetMacAddrAction instead");
+ warnlog("access to MacAddrAction is deprecated and will be removed in a future version, please use SetMacAddrAction instead");
return std::shared_ptr<DNSAction>(new SetMacAddrAction(code));
});
});
luaCtx.writeFunction("DisableValidationAction", []() {
- warnlog("access to DisableValidationAction is deprecated, please use SetDisableValidationAction instead");
+ warnlog("access to DisableValidationAction is deprecated and will be removed in a future version, please use SetDisableValidationAction instead");
return std::shared_ptr<DNSAction>(new SetDisableValidationAction);
});
});
luaCtx.writeFunction("SkipCacheAction", []() {
- warnlog("access to SkipCacheAction is deprecated, please use SetSkipCacheAction instead");
+ warnlog("access to SkipCacheAction is deprecated and will be removed in a future version, please use SetSkipCacheAction instead");
return std::shared_ptr<DNSAction>(new SetSkipCacheAction);
});
});
luaCtx.writeFunction("TempFailureCacheTTLAction", [](int maxTTL) {
- warnlog("access to TempFailureCacheTTLAction is deprecated, please use SetTempFailureCacheTTLAction instead");
+ warnlog("access to TempFailureCacheTTLAction is deprecated and will be removed in a future version, please use SetTempFailureCacheTTLAction instead");
return std::shared_ptr<DNSAction>(new SetTempFailureCacheTTLAction(maxTTL));
});
});
luaCtx.writeFunction("ECSPrefixLengthAction", [](uint16_t v4PrefixLength, uint16_t v6PrefixLength) {
- warnlog("access to ECSPrefixLengthAction is deprecated, please use SetECSPrefixLengthAction instead");
+ warnlog("access to ECSPrefixLengthAction is deprecated and will be removed in a future version, please use SetECSPrefixLengthAction instead");
return std::shared_ptr<DNSAction>(new SetECSPrefixLengthAction(v4PrefixLength, v6PrefixLength));
});
});
luaCtx.writeFunction("ECSOverrideAction", [](bool ecsOverride) {
- warnlog("access to ECSOverrideAction is deprecated, please use SetECSOverrideAction instead");
+ warnlog("access to ECSOverrideAction is deprecated and will be removed in a future version, please use SetECSOverrideAction instead");
return std::shared_ptr<DNSAction>(new SetECSOverrideAction(ecsOverride));
});
});
luaCtx.writeFunction("DisableECSAction", []() {
- warnlog("access to DisableECSAction is deprecated, please use SetDisableECSAction instead");
+ warnlog("access to DisableECSAction is deprecated and will be removed in a future version, please use SetDisableECSAction instead");
return std::shared_ptr<DNSAction>(new SetDisableECSAction());
});
});
luaCtx.writeFunction("TagAction", [](std::string tag, std::string value) {
- warnlog("access to TagAction is deprecated, please use SetTagAction instead");
+ warnlog("access to TagAction is deprecated and will be removed in a future version, please use SetTagAction instead");
return std::shared_ptr<DNSAction>(new SetTagAction(tag, value));
});
});
luaCtx.writeFunction("TagResponseAction", [](std::string tag, std::string value) {
- warnlog("access to TagResponseAction is deprecated, please use SetTagResponseAction instead");
+ warnlog("access to TagResponseAction is deprecated and will be removed in a future version, please use SetTagResponseAction instead");
return std::shared_ptr<DNSResponseAction>(new SetTagResponseAction(tag, value));
});
});
luaCtx.writeFunction("SetNegativeAndSOAAction", [](bool nxd, const std::string& zone, uint32_t ttl, const std::string& mname, const std::string& rname, uint32_t serial, uint32_t refresh, uint32_t retry, uint32_t expire, uint32_t minimum, boost::optional<responseParams_t> vars) {
- warnlog("access to SetNegativeAndSOAAction is deprecated, please use NegativeAndSOAAction instead");
+ warnlog("access to SetNegativeAndSOAAction is deprecated and will be removed in a future version, please use NegativeAndSOAAction instead");
auto ret = std::shared_ptr<DNSAction>(new NegativeAndSOAAction(nxd, DNSName(zone), ttl, DNSName(mname), DNSName(rname), serial, refresh, retry, expire, minimum));
auto action = std::dynamic_pointer_cast<NegativeAndSOAAction>(ret);
parseResponseConfig(vars, action->d_responseConfig);