From patchwork Fri Feb 5 14:34:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Openvpn-devel,1/1] openvpn3: tunprop.hpp: handle dhcp-option DOMAIN-SEARCH X-Patchwork-Submitter: Viktor Oreshkin X-Patchwork-Id: 1593 X-Patchwork-Delegate: davids@openvpn.net Message-Id: To: openvpn-devel@lists.sourceforge.net Date: Fri, 5 Feb 2021 17:34:14 +0300 From: Viktor Oreshkin List-Id: Adds support for dhcp-option DOMAIN-SEARCH, which was added to OpenVPN 2 in release 2.5 fixes https://github.com/OpenVPN/openvpn3/issues/145 URL: https://github.com/OpenVPN/openvpn3/pull/146 Signed-off-by: Viktor Oreshkin --- openvpn/tun/client/tunprop.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) for (size_t j = 2; j < o.size(); ++j) diff --git a/openvpn/tun/client/tunprop.hpp b/openvpn/tun/client/tunprop.hpp index d9f20f85445b..3e7ab8eab54b 100644 --- a/openvpn/tun/client/tunprop.hpp +++ b/openvpn/tun/client/tunprop.hpp @@ -523,7 +523,7 @@ namespace openvpn { throw tun_prop_dhcp_option_error("tun_builder_add_dns_server failed"); flags |= F_ADD_DNS; } - else if (type == "DOMAIN") + else if (type == "DOMAIN" || type == "DOMAIN-SEARCH") { o.min_args(3);