diff --git a/server/AyaNova/util/License.cs b/server/AyaNova/util/License.cs index d3a2f1a9..4a3eed64 100644 --- a/server/AyaNova/util/License.cs +++ b/server/AyaNova/util/License.cs @@ -1,3 +1,4 @@ +#define DEVELOPMENT_TEST_ROCKFISH using System; using System.Text; using System.Threading.Tasks; @@ -28,18 +29,29 @@ namespace AyaNova.Core internal static class License { + + //License server addresses + // private const string LICENSE_SERVER_URL_ROCKFISH = "https://rockfish.ayanova.com/"; + +#if (DEVELOPMENT_TEST_ROCKFISH) + private const string LICENSE_SERVER_URL_ROCKFISH = "http://localhost:3001/"; +#warning FYI DEVELOPMENT_TEST_ROCKFISH is defined +#else private const string LICENSE_SERVER_URL_ROCKFISH = "https://rockfish.ayanova.com/"; +#endif + +//CRITICAL PROBLEM IF THIS IS TRUE +#if(DEVELOPMENT_TEST_ROCKFISH && !DEBUG) +#error ### HOLDUP: DEVELOPMENT_TEST_ROCKFISH is defined in a RELEASE BUILD!!!! +#endif + + private const string LICENSE_SERVER_URL_IO = "https://io.ayanova.com/"; private const string LICENSE_SERVER_URL_EUROPA = "https://europa.ayanova.com/"; private const string LICENSE_SERVER_URL_CALLISTO = "https://callisto.ayanova.com/"; - // #if (DEBUG) - // private const string LICENSE_SERVER_URL = "http://localhost:3001/"; - // #else - // private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/"; - // #endif //Unlicensed token private const string UNLICENSED_TOKEN = "UNLICENSED"; @@ -58,7 +70,7 @@ namespace AyaNova.Core //This feature name means it's a trial key private const string TRIAL_FEATURE_NAME = "TrialMode"; - + //Current license key, can be empty private static AyaNovaLicenseKey _ActiveLicense = new AyaNovaLicenseKey();