From 3b60b066b7d284aee6ac72a6f9e266d812d96de2 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 27 Feb 2019 00:58:28 +0100 Subject: [PATCH] Version the network protocol This is a quick solution to prevent games that are not running the same version of devilution from joining each other. --- SourceX/dvlnet/packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceX/dvlnet/packet.cpp b/SourceX/dvlnet/packet.cpp index 62760ad48..242a17b4e 100644 --- a/SourceX/dvlnet/packet.cpp +++ b/SourceX/dvlnet/packet.cpp @@ -162,7 +162,7 @@ packet_factory::packet_factory(std::string pw) ABORT(); //pw.resize(std::min(pw.size(), crypto_pwhash_PASSWD_MAX)); //pw.resize(std::max(pw.size(), crypto_pwhash_PASSWD_MIN), 0); - std::string salt("devilution-salt"); + std::string salt("devilution-salt 0.1.0"); salt.resize(crypto_pwhash_SALTBYTES, 0); if (crypto_pwhash(key.data(), crypto_secretbox_KEYBYTES, pw.data(), pw.size(),