diff options
| author | auth <[email protected]> | 2020-07-11 17:09:27 +0200 |
|---|---|---|
| committer | auth <[email protected]> | 2020-07-11 17:09:27 +0200 |
| commit | f9b06df544c8134b5982b76f2d24aa93289f6d71 (patch) | |
| tree | 052961cb2d76b7999a722745b120d4fcd0977860 /client/src/main.cpp | |
| parent | More assembler implementations. (diff) | |
| download | loader-f9b06df544c8134b5982b76f2d24aa93289f6d71.tar.xz loader-f9b06df544c8134b5982b76f2d24aa93289f6d71.zip | |
Added blacklist implementation on server.
Overall code cleanup and optimization.
Diffstat (limited to 'client/src/main.cpp')
| -rw-r--r-- | client/src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/main.cpp b/client/src/main.cpp index 8e742de..8a1aca0 100644 --- a/client/src/main.cpp +++ b/client/src/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char* argv[]) { io::init(); - /*assembler::assembler a; + /*assembler a; a.push({1, 2, 3, 7, 9}); a.end(); for(auto &b : a()) { @@ -30,8 +30,11 @@ int main(int argc, char* argv[]) { if (action == tcp::packet_action::session) { client.session_id = packet.session_id; + tcp::version_t v{0, 1, 0}; auto version = fmt::format("{}.{}.{}", v.major, v.minor, v.patch); + io::logger->info("current server version {}", message); + if (version != message) { io::logger->error("please update your client."); client.shutdown(); |