diff --git a/source/src/crypto.cpp b/source/src/crypto.cpp index 58587c51..5bd96291 100644 --- a/source/src/crypto.cpp +++ b/source/src/crypto.cpp @@ -910,6 +910,7 @@ void authsetup(char **args, int numargs) // set up private and public keys DELETEA(oldfile); } } +#ifndef PRODUCTION else if(!strcasecmp(args[0], "UNARMED")) // FIXME: this is for testing purposes only - to test simultaneous logins from the same account - delete before release! { // authsetup unarmed @@ -918,6 +919,7 @@ void authsetup(char **args, int numargs) // set up private and public keys ed25519_pubkey_from_private(pub, priv); privpwdcfg = 0; } +#endif } ed25519_pubkey_from_private(keyhash, priv); if(!privpwdcfg && !memcmp(pub, keyhash, 32)) diff --git a/source/src/cube.h b/source/src/cube.h index d30b214f..88e1bd84 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -60,13 +60,16 @@ extern float waterlevel; #define AC_MASTER_URI "ms.cubers.net" -// DEV -#define AC_VERSION -(1203) -#define AC_MASTER_PORT 28758 +// uncommend this line for production release +//#define PRODUCTION -// PRODUCTION -//#define AC_VERSION 1203 -//#define AC_MASTER_PORT 28760 +#ifdef PRODUCTION + #define AC_VERSION 1203 + #define AC_MASTER_PORT 28760 +#else + #define AC_VERSION -(1203) + #define AC_MASTER_PORT 28758 +#endif #define MAXCLIENTSONMASTER 16 // FIXME #define CONFIGROTATEMAX 5 // keep 5 old versions of saved.cfg and init.cfg around