From: Yossi Gottlieb Date: Tue, 17 Nov 2015 10:18:34 +0000 (+0200) Subject: Gracefully handle cases where IPv6 (AF_INET6) is not supported. X-Git-Tag: dnsdist-1.0.0-alpha1~197^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=883ad072c03279bfd0637e96f5fae488343b8d8a;p=pdns Gracefully handle cases where IPv6 (AF_INET6) is not supported. This fixes issue #1259 and allows a single configuration file to be used both for IPv6 enabled and IPv6-less systems. --- diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index c5539af22..b068b9936 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -206,8 +206,13 @@ void UDPNameserver::bindIPv6() s=socket(AF_INET6,SOCK_DGRAM,0); if(s<0) { - L<