Add option to build pro without license checks
Former-commit-id: 0713518d2f34559a06db31a9023228b91ce60af3
This commit is contained in:
parent
aff45e1cde
commit
87b36b00df
@ -108,6 +108,11 @@ ifeq ($(USE_JEMALLOC),no)
|
|||||||
MALLOC=libc
|
MALLOC=libc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(NO_LICENSE_CHECK),yes)
|
||||||
|
CXXFLAGS+=-DNO_LICENSE_CHECK=1
|
||||||
|
endif
|
||||||
|
|
||||||
# Override default settings if possible
|
# Override default settings if possible
|
||||||
-include .make-settings
|
-include .make-settings
|
||||||
|
|
||||||
|
@ -1103,6 +1103,7 @@ void serverLog(int level, const char *fmt, ...) {
|
|||||||
|
|
||||||
static void checkTrialTimeout()
|
static void checkTrialTimeout()
|
||||||
{
|
{
|
||||||
|
#ifndef NO_LICENSE_CHECK
|
||||||
if (cserver.license_key != nullptr && FValidKey(cserver.license_key, strlen(cserver.license_key)))
|
if (cserver.license_key != nullptr && FValidKey(cserver.license_key, strlen(cserver.license_key)))
|
||||||
return;
|
return;
|
||||||
time_t curtime = time(NULL);
|
time_t curtime = time(NULL);
|
||||||
@ -1118,6 +1119,7 @@ static void checkTrialTimeout()
|
|||||||
{
|
{
|
||||||
serverLog(LL_WARNING, "Trial timeout in %ld:%02ld minutes", remaining/60, remaining % 60);
|
serverLog(LL_WARNING, "Trial timeout in %ld:%02ld minutes", remaining/60, remaining % 60);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Log a fixed message without printf-alike capabilities, in a way that is
|
/* Log a fixed message without printf-alike capabilities, in a way that is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user