append warnings to response instead of result (#192)

This commit is contained in:
Nathan Nichols
2022-06-21 12:39:48 -04:00
committed by GitHub
parent 13afe9373d
commit 5f5648470a

View File

@@ -355,8 +355,7 @@ public:
if (lastPublishAge >= 60)
warnings.emplace_back("This server may be out of date");
auto& result = response["result"].as_object();
result["warnings"] = warnings;
response["warnings"] = warnings;
std::string responseStr = boost::json::serialize(response);
if (!dosGuard_.add(*ip, responseStr.size()))
{