1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 03:45:08 +03:00

[SEV-0001] Force EasyMode for client manager. (#3)

* Make EasyMode default for the client.

* Force VPN Client manager to start in easy-mode by default.
This commit is contained in:
mskorokhod 2022-06-03 20:34:36 +03:00 committed by GitHub
parent 209f60f079
commit 55bfc6b77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -12249,7 +12249,8 @@ void InitCM(bool set_app_id)
// Memory allocation // Memory allocation
cm = ZeroMalloc(sizeof(CM)); cm = ZeroMalloc(sizeof(CM));
// Use Easy Mode by default if nothing else is specified.
cm->CmSettingInitialFlag = CM_SETTING_INIT_EASY;
// If the command line argument is set treat it as a server name // If the command line argument is set treat it as a server name
ut = GetCommandLineUniToken(); ut = GetCommandLineUniToken();

View File

@ -9023,6 +9023,8 @@ void CiInitConfiguration(CLIENT *c)
c->Config.UseKeepConnect = false; // Don't use the connection maintenance function by default in the Client c->Config.UseKeepConnect = false; // Don't use the connection maintenance function by default in the Client
// Eraser // Eraser
c->Eraser = NewEraser(c->Logger, 0); c->Eraser = NewEraser(c->Logger, 0);
// Set EasyMode by default.
c->CmSetting->EasyMode = true;
} }
else else
{ {