use app version from new golpe header so that versions are accurate after incremental builds

This commit is contained in:
Doug Hoyte
2023-01-13 17:02:32 -05:00
parent cf7f92451f
commit 154ca9a25c
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@
#include "RelayServer.h"
#include "app_git_version.h"
static std::string preGenerateHttpResponse(const std::string &contentType, const std::string &content) {
std::string output = "HTTP/1.1 200 OK\r\n";
@ -95,7 +98,7 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
{ "contact", cfg().relay__info__contact },
{ "supported_nips", tao::json::value::array({ 1, 9, 11, 12, 15, 16, 20, 22 }) },
{ "software", "git+https://github.com/hoytech/strfry.git" },
{ "version", GOLPE_GIT_VER },
{ "version", APP_GIT_VERSION },
})));
ver = cfg().version();
}