mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-02-21 10:00:09 +03:00
Cedar: Add support for 32 bit unsigned integer Proto options
This commit also fixes a bug which caused the server to initialize all boolean options to false. It was caused by SiLoadProtoCfg() not checking whether the item exists in the configuration file. CfgGetBool() always returns false if the item doesn't exist.
This commit is contained in:
@ -25,7 +25,8 @@ typedef enum PROTO_OPTION_VALUE
|
||||
{
|
||||
PROTO_OPTION_UNKNOWN,
|
||||
PROTO_OPTION_STRING,
|
||||
PROTO_OPTION_BOOL
|
||||
PROTO_OPTION_BOOL,
|
||||
PROTO_OPTION_UINT32
|
||||
} PROTO_OPTION_VALUE;
|
||||
|
||||
typedef struct PROTO
|
||||
@ -44,6 +45,7 @@ struct PROTO_OPTION
|
||||
{
|
||||
bool Bool;
|
||||
char *String;
|
||||
UINT UInt32;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user