]> granicus.if.org Git - pdns/commitdiff
ixfrdist: use ComboAddress::isIPv4()
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 24 Jan 2018 15:33:23 +0000 (16:33 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 29 Jan 2018 08:20:16 +0000 (09:20 +0100)
pdns/ixfrdist.cc

index 27608a2993f4d44bf60cacbe811de084dedf9e6d..0b49217cf6a25515cd5418263662ba8911691bfe 100644 (file)
@@ -222,7 +222,7 @@ void updateThread() {
       if (g_verbose) {
         cerr<<"[INFO] Attempting to receive full zonedata for '"<<domain<<"'"<<endl;
       }
-      ComboAddress local = g_master.sin4.sin_family == AF_INET ? ComboAddress("0.0.0.0") : ComboAddress("::");
+      ComboAddress local = g_master.isIPv4() ? ComboAddress("0.0.0.0") : ComboAddress("::");
       TSIGTriplet tt;
       shared_ptr<SOARecordContent> soa;
       try {