]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
remove foreign_option() call for IPv6 DNS servers
authorHeiko Hund <heiko@ist.eigentlich.net>
Fri, 27 May 2022 01:24:54 +0000 (03:24 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 27 May 2022 08:15:34 +0000 (10:15 +0200)
The call survived since the initial commit 94bfc256d, where it was added
as a fallback, since no IPv6 DNS server handling was implemented at the
time. Now there's dhcp_option_dns6_parse() which adds the servers to the
tuntap options, just like how it is done with the v4 servers.

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220527012457.1819262-2-heiko@ist.eigentlich.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24433.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 20cc849dc562a8ce50ef2530b86f09193e1f272e..65f4d889b31d0cb8f17a7f3cec983fc748f5ce61 100644 (file)
@@ -7825,7 +7825,6 @@ add_option(struct options *options,
             if (strstr(p[2], ":"))
             {
                 ipv6dns = true;
-                foreign_option(options, p, 3, es);
                 dhcp_option_dns6_parse(p[2], o->dns6, &o->dns6_len, msglevel);
             }
             else