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 <imselfish@stek29.rocks> --- openvpn/tun/client/tunprop.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); for (size_t j = 2; j < o.size(); ++j) -- 2.29.2
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel