mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-01 01:16:03 -04:00
defang webAPIHeartbeat, which is off by default, and remove the vxEncrypt stuff
This commit is contained in:
+1
-7
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user