From 883ad072c03279bfd0637e96f5fae488343b8d8a Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 17 Nov 2015 12:18:34 +0200 Subject: [PATCH] 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. --- pdns/nameserver.cc | 9 +++++++-- pdns/resolver.cc | 7 +++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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<