]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix --dns options for TAP adapter
authorLev Stipakov <lev@openvpn.net>
Thu, 31 Jul 2025 10:48:27 +0000 (12:48 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 31 Jul 2025 10:53:27 +0000 (12:53 +0200)
commit264fe91660fb1a7a426161a9a042ed3f9bd0a7a6
tree2f2f7ffd93c68010f010196bdd9ba9e5932d4570
parent040e0d1c308a587ae9a26295eeaa070561befa0d
Fix --dns options for TAP adapter

Commit

    2dfc4f ("dns: deal with --dhcp-options when --dns is active")

has accidentally removed setting of the DHCP_OPTIONS_DHCP_OPTIONAL
flag when copying --dns options. This flag is required to apply options
via DHCP string, which we do for TAP adapter. As a result, --dns options
stopped working for TAP.

Fix by setting this flag when copying --dns options to tuntap_options.

Change-Id: Id95cd14095a03afb3140a03ae96e9f5679e4fe89
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250731104833.23305-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32436.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c