Skip to content

Commit 8c10b92

Browse files
committed
Also parse dhcp-option DNS6 as DNS server for compatibility with OpenVPN 2
1 parent 3e002c8 commit 8c10b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvpn/tun/client/tunprop.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ namespace openvpn {
485485
const Option& o = opt[*i];
486486
try {
487487
const std::string& type = o.get(1, 64);
488-
if (type == "DNS")
488+
if (type == "DNS" || type == "DNS6")
489489
{
490490
o.exact_args(3);
491491
const IP::Addr ip = IP::Addr::from_string(o.get(2, 256), "dns-server-ip");

0 commit comments

Comments
 (0)