projects
/
pdns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0828ce
)
calidns: Use the correct socket family (IPv4 / IPv6)
author
Remi Gacogne
<remi.gacogne@powerdns.com>
Fri, 24 Feb 2017 15:42:55 +0000
(16:42 +0100)
committer
Remi Gacogne
<remi.gacogne@powerdns.com>
Thu, 16 Mar 2017 17:32:33 +0000
(18:32 +0100)
(cherry picked from commit
7f363f60451fa8e54508c2628be122a8eb021b53
)
pdns/calidns.cc
patch
|
blob
|
history
diff --git
a/pdns/calidns.cc
b/pdns/calidns.cc
index 2a7460f72bfdb990cbebabbe8ca54cdb9d4dcfda..673518f9da084c94871a65eec77d1dd5d4c90464 100644
(file)
--- a/
pdns/calidns.cc
+++ b/
pdns/calidns.cc
@@
-225,7
+225,7
@@
try
vector<Socket*> sockets;
ComboAddress dest(argv[2], 53);
for(int i=0; i < 24; ++i) {
- Socket *sock = new Socket(
AF_INET
, SOCK_DGRAM);
+ Socket *sock = new Socket(
dest.sin4.sin_family
, SOCK_DGRAM);
// sock->connect(dest);
setSocketSendBuffer(sock->getHandle(), 2000000);
setSocketReceiveBuffer(sock->getHandle(), 2000000);