diff options
| author | auth12 <[email protected]> | 2020-08-28 17:02:54 +0100 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-08-28 17:02:54 +0100 |
| commit | 1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48 (patch) | |
| tree | da0324fe611754ac7a816c9a96eafa84a8cf5e4b /server/src/client | |
| parent | Improved CPU usage drastically. (diff) | |
| download | loader-1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48.tar.xz loader-1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48.zip | |
Added version checks on server.
Changed main thread behaviour.
Fixed events bug where packet seq would get corrupted.
Changed session packet behaviour.
Diffstat (limited to 'server/src/client')
| -rw-r--r-- | server/src/client/client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/client/client.h b/server/src/client/client.h index 857ea50..1a37193 100644 --- a/server/src/client/client.h +++ b/server/src/client/client.h @@ -13,6 +13,12 @@ enum client_response { server_error = 98679 }; +enum hwid_result { + blacklisted = 4567, + version_mismatch = 5472, + ok = 3247 + }; + class client { int m_socket; SSL* m_ssl; @@ -57,7 +63,7 @@ class client { bool timeout() { return std::difftime(std::time(nullptr), m_time) >= 300; } - bool security_timeout() { return std::difftime(std::time(nullptr), security_time) >= 10; } + bool security_timeout() { return std::difftime(std::time(nullptr), security_time) >= 30; } int write(const packet_t& packet) { if (!packet) return 0; |