]> granicus.if.org Git - pdns/commitdiff
It turns out our use of getaddrinfo in communicator.hh would be returning all address...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 4 Jan 2017 22:17:55 +0000 (23:17 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 4 Jan 2017 22:17:55 +0000 (23:17 +0100)
We may have filtered this out at a later stage, but it was wrong in any case.

pdns/communicator.hh

index 065dae952ce62b838be504a9e6e80fe1c8355567..8171ec4f641121385705c073198ce0178c9bdec9 100644 (file)
@@ -275,7 +275,7 @@ private:
     struct addrinfo* res;
     struct addrinfo hints;
     memset(&hints, 0, sizeof(hints));
-
+    hints.ai_socktype = SOCK_DGRAM; // otherwise we get everything in triplicate (!)
     for(int n = 0; n < 2; ++n) {
       hints.ai_family = n ? AF_INET : AF_INET6;
       ComboAddress remote;