]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix broken DHCP options master
authorLev Stipakov <lev@openvpn.net>
Wed, 30 Jul 2025 18:04:26 +0000 (20:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 30 Jul 2025 18:13:46 +0000 (20:13 +0200)
commit040e0d1c308a587ae9a26295eeaa070561befa0d
tree0916fb1b33020af749dda3e0af45e4a4dac6ff16
parentb5e0032bf09afa928d9728051599a5e738ff4d10
Fix broken DHCP options

Commit

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

broke support for --dhcp-options. It removed the setting of the
DHCP_OPTIONS_DHCP_OPTIONAL flag for some DHCP options. This flag is
required for those options to be applied correctly, as it is used
when building the DHCP options string that is passed to the TAP driver.

This commit fixes the issue by restoring the setting of this flag.

GitHub: fixes OpenVPN/openvpn#791

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