|
@@ -54,7 +54,7 @@ void NameResolver::resolve(std::deque<std::string>& resolvedAddresses,
|
|
|
hints.ai_flags = 0;
|
|
|
hints.ai_protocol = 0;
|
|
|
int s;
|
|
|
- s = getaddrinfo(hostname.c_str(), "0", &hints, &res);
|
|
|
+ s = getaddrinfo(hostname.c_str(), 0, &hints, &res);
|
|
|
if(s) {
|
|
|
throw DlAbortEx(StringFormat(EX_RESOLVE_HOSTNAME,
|
|
|
hostname.c_str(), gai_strerror(s)).str());
|