diff options
author | madmaxoft <github@xoft.cz> | 2014-01-28 23:53:07 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-28 23:53:54 +0100 |
commit | bc6fc859f4c245d17d3bbc2028d93b42b1232d01 (patch) | |
tree | 1637ddf7e0588ac7ef5c6fe9fd681601e8572f57 /src/Server.cpp | |
parent | Crypto: Added public key encryption / decryption. (diff) | |
download | cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.gz cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.bz2 cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.lz cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.xz cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.zst cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Server.cpp b/src/Server.cpp index 3f9f8a4ac..ba2b46d55 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -237,7 +237,8 @@ bool cServer::InitServer(cIniFile & a_SettingsIni) m_bIsConnected = true; m_ServerID = "-"; - if (a_SettingsIni.GetValueSetB("Authentication", "Authenticate", true)) + m_ShouldAuthenticate = a_SettingsIni.GetValueSetB("Authentication", "Authenticate", true); + if (m_ShouldAuthenticate) { MTRand mtrand1; unsigned int r1 = (mtrand1.randInt() % 1147483647) + 1000000000; |