Allowing compression means that we may accept a pushable compress
setting.
This scenario can't work with DCO therefore disable it when compression
is allowed.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20220807095329.28819-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24834.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
}
#if defined(USE_COMP)
- if (o->comp.alg != COMP_ALG_UNDEF)
+ if (o->comp.alg != COMP_ALG_UNDEF
+ || o->comp.flags & COMP_F_ALLOW_ASYM
+ || o->comp.flags & COMP_F_ALLOW_COMPRESS)
{
- msg(msglevel, "Note: Using compression disables data channel offload.");
+ msg(msglevel, "Note: '--allow-compression' is not set to 'no', disabling data channel offload.");
if (o->mode == MODE_SERVER && !(o->comp.flags & COMP_F_MIGRATE))
{