Cedar: use Proto API for protocol options

This commit is contained in:
Davide Beatrici committed 2020-07-28 00:57:36 +02:00
1 parent 5209b310e3
commit b853140626
7 files changed
+47 -36

No files matched your search

+2 -2
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;
}