aboutsummaryrefslogtreecommitdiff
path: root/client/src/main.cpp
diff options
context:
space:
mode:
authoralpine <[email protected]>2020-06-26 14:06:25 +0200
committeralpine <[email protected]>2020-06-26 14:06:25 +0200
commitd89852b672d038ad07198dfeb6a5b1e89be84bb5 (patch)
treee04e7cfcccf6b96af19678db79eba56acd57deed /client/src/main.cpp
parentRemoved xor on streaming for now. (diff)
downloadloader-d89852b672d038ad07198dfeb6a5b1e89be84bb5.tar.xz
loader-d89852b672d038ad07198dfeb6a5b1e89be84bb5.zip
Added server certificate verification on client.
Xor is now used only with messages.
Diffstat (limited to 'client/src/main.cpp')
-rw-r--r--client/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main.cpp b/client/src/main.cpp
index 410197f..220afd6 100644
--- a/client/src/main.cpp
+++ b/client/src/main.cpp
@@ -18,7 +18,7 @@ int main(int argc, char* argv[]) {
// first packet is the session id and current version
if (packet.id == 1) {
client.session_id = packet.session_id;
- tcp::version_t v;
+ tcp::version_t v{0, 1, 0};
auto version = fmt::format("{}.{}.{}", v.major, v.minor, v.patch);
if(version != packet.message) {
io::logger->error("please update your client");