mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 10:59:53 +03:00
Cedar/Admin.c: Restrict StGetProtoOptions() access to server administrators
This is in order to protect the WireGuard private key.
This commit is contained in:
parent
a8580458c4
commit
ef24ff74c8
@ -10171,6 +10171,8 @@ UINT StGetProtoOptions(ADMIN *a, RPC_PROTO_OPTIONS *t)
|
||||
UINT ret = ERR_NO_ERROR;
|
||||
LIST *options;
|
||||
|
||||
SERVER_ADMIN_ONLY;
|
||||
|
||||
if (proto == NULL)
|
||||
{
|
||||
return ERR_NOT_SUPPORTED;
|
||||
|
Loading…
Reference in New Issue
Block a user