Add configuration option for name of the server

This commit is contained in:
loki
2019-12-26 00:01:06 +01:00
parent 94fdba405d
commit cd31fbeb39
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ void serverinfo(std::shared_ptr<typename SimpleWeb::ServerBase<T>::Response> res
pt::ptree tree;
tree.put("root.<xmlattr>.status_code", 200);
tree.put("root.hostname", "loki-pc");
tree.put("root.hostname", config::nvhttp.sunshine_name);
tree.put("root.appversion", VERSION);
tree.put("root.GfeVersion", GFE_VERSION);