Message-ID: Date: Mon, 20 Feb 2023 21:09:33 +0100 MIME-Version: 1.0 Content-Language: en-US References: <20230220085640.1519-1-lstipakov@...277...> <20230220090601.983-1-lstipakov@...277...> From: Antonio Quartulli In-Reply-To: <20230220090601.983-1-lstipakov@...277...> Subject: Re: [Openvpn-devel] [PATCH v2] Disabe DCO if proxy is set via management List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Lev Stipakov , openvpn-devel@lists.sourceforge.net Cc: Lev Stipakov Hi, On 20/02/2023 10:06, Lev Stipakov wrote: > From: Lev Stipakov > > DCO doesn't support proxy and we already disable DCO > is proxy is set in profile. > > Signed-off-by: Lev Stipakov Acked-by: Antonio Quartulli > --- > v2: use dco_enabled() helper function > > src/openvpn/init.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/src/openvpn/init.c b/src/openvpn/init.c > index b500d354..622239f6 100644 > --- a/src/openvpn/init.c > +++ b/src/openvpn/init.c > @@ -223,6 +223,12 @@ management_callback_proxy_cmd(void *arg, const char **p) > } > else if (p[2] && p[3]) > { > + if (dco_enabled(&c->options)) > + { > + msg(M_INFO, "Proxy set via management, disabling Data Channel Offload."); > + c->options.tuntap_options.disable_dco = true; > + } > + > if (streq(p[1], "HTTP")) > { > struct http_proxy_options *ho; -- Antonio Quartulli