defang webAPIHeartbeat, which is off by default, and remove the vxEncrypt stuff

This commit is contained in:
DarthArgus
2018-05-03 18:04:39 +00:00
parent 57de937e61
commit 4a6902179d
6 changed files with 12 additions and 135 deletions
+1 -7
View File
@@ -22,19 +22,13 @@ namespace StellaBellum {
private:
const inline std::string get_selfpath() {
char buff[PATH_MAX];
ssize_t len = ::readlink(vxENCRYPT("/proc/self/exe").decrypt(), buff, sizeof(buff) - 1);
ssize_t len = ::readlink("/proc/self/exe", buff, sizeof(buff) - 1);
if (len != -1) {
buff[len] = '\0';
return std::string(buff);
}
return std::string();
}
inline void eatIt() {
abort();
sleep(10);
raise(SIGSEGV);
}
};
}