]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Alias ADAPTER_DOMAIN_SUFFIX to DOMAIN
authorLev Stipakov <lev@openvpn.net>
Tue, 22 Sep 2020 10:00:21 +0000 (13:00 +0300)
committerGert Doering <gert@greenie.muc.de>
Tue, 29 Sep 2020 09:19:10 +0000 (11:19 +0200)
ADAPTER_DOMAIN_SUFFIX is an openvpn3 replacement for
DOMAIN, which is used there for split-dns. This option is pushed
by modern Access Server.

This change improves compatibility between OpenVPN
community client and Access Server.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200922100021.20329-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21107.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/vpn-network-options.rst
src/openvpn/options.c

index 825dd1caaebb0500d4cc2405ce735aad4dfa74df..2668278944db43bf23634dce0285b2c5a8796fef 100644 (file)
@@ -114,6 +114,10 @@ routing.
   :code:`DOMAIN` ``name``
         Set Connection-specific DNS Suffix to :code:`name`.
 
+  :code:`ADAPTER_DOMAIN_SUFFIX` ``name``
+        Alias to :code:`DOMAIN`. This is a compatibility option, it
+        should not be used in new deployments.
+
   :code:`DOMAIN-SEARCH` ``name``
         Add :code:`name` to the domain search list.
         Repeat this option to add more entries. Up to
index 4b22d3d9348d8fa843af5f2e1e1cc2e0d69c565d..3df803db9baae623f9294f9922ad9fc2bcc24a1d 100644 (file)
@@ -7440,7 +7440,8 @@ add_option(struct options *options,
         VERIFY_PERMISSION(OPT_P_IPWIN32);
         bool ipv6dns = false;
 
-        if (streq(p[1], "DOMAIN") && p[2])
+        if ((streq(p[1], "DOMAIN") || streq(p[1], "ADAPTER_DOMAIN_SUFFIX"))
+            && p[2])
         {
             o->domain = p[2];
         }