View | Details | Raw Unified | Return to bug 530440
Collapse All | Expand All

(-)aria2-1.5.1/src/NameResolver.cc (-1 / +1 lines)
Lines 51-57 Link Here
51
  memset(&hints, 0, sizeof(hints));
51
  memset(&hints, 0, sizeof(hints));
52
  hints.ai_family = AF_UNSPEC;
52
  hints.ai_family = AF_UNSPEC;
53
  hints.ai_socktype = _socktype;
53
  hints.ai_socktype = _socktype;
54
  hints.ai_flags = 0;
54
  hints.ai_flags = AI_ADDRCONFIG;
55
  hints.ai_protocol = 0;
55
  hints.ai_protocol = 0;
56
  int s;
56
  int s;
57
  s = getaddrinfo(hostname.c_str(), 0, &hints, &res);
57
  s = getaddrinfo(hostname.c_str(), 0, &hints, &res);
(-)aria2-1.5.1/src/SocketCore.cc (-2 / +2 lines)
Lines 249-255 Link Here
249
  memset(&hints, 0, sizeof(hints));
249
  memset(&hints, 0, sizeof(hints));
250
  hints.ai_family = _protocolFamily;
250
  hints.ai_family = _protocolFamily;
251
  hints.ai_socktype = _sockType;
251
  hints.ai_socktype = _sockType;
252
  hints.ai_flags = 0;
252
  hints.ai_flags = AI_ADDRCONFIG;
253
  hints.ai_protocol = 0;
253
  hints.ai_protocol = 0;
254
  int s;
254
  int s;
255
  s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res);
255
  s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res);
Lines 982-988 Link Here
982
  memset(&hints, 0, sizeof(hints));
982
  memset(&hints, 0, sizeof(hints));
983
  hints.ai_family = _protocolFamily;
983
  hints.ai_family = _protocolFamily;
984
  hints.ai_socktype = _sockType;
984
  hints.ai_socktype = _sockType;
985
  hints.ai_flags = 0;
985
  hints.ai_flags = AI_ADDRCONFIG;
986
  hints.ai_protocol = 0;
986
  hints.ai_protocol = 0;
987
  int s;
987
  int s;
988
  s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res);
988
  s = getaddrinfo(host.c_str(), uitos(port).c_str(), &hints, &res);

Return to bug 530440