1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-15 20:25:00 +03:00

Cedar: use Proto API for protocol options

This commit is contained in:
Davide Beatrici
2020-07-19 23:45:12 +02:00
parent 5209b310e3
commit b853140626
7 changed files with 47 additions and 36 deletions

View File

@ -308,9 +308,9 @@ const PROTO_CONTAINER *ProtoDetect(const PROTO *proto, const PROTO_MODE mode, co
const PROTO_CONTAINER *container = LIST_DATA(proto->Containers, i);
const PROTO_IMPL *impl = container->Impl;
if (StrCmp(impl->Name(), "OpenVPN") == 0 && proto->Cedar->Server->DisableOpenVPNServer)
if (ProtoEnabled(proto, container->Name) == false)
{
Debug("ProtoDetect(): OpenVPN detected, but it's disabled\n");
Debug("ProtoDetect(): skipping %s because it's disabled\n", container->Name);
continue;
}