Merge pull request #91 from vibe-d/MartinNowak-patch-1

typo
This commit is contained in:
Sönke Ludwig 2018-11-06 12:20:47 +01:00 committed by GitHub
commit 882402033c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ final class EventDriverDNS_GAI(Events : EventDriverEvents, Signals : EventDriver
debug (EventCoreLogDNS) print("lookup %s start", lookup.name);
addrinfo hints;
hints.ai_flags = AI_ADDRCONFIG;
version (linx) hints.ai_flags |= AI_V4MAPPED;
version (linux) hints.ai_flags |= AI_V4MAPPED;
hints.ai_family = af;
() @trusted { lookup.retcode = getaddrinfo(lookup.name.toStringz(), null, af == AddressFamily.UNSPEC ? null : &hints, &lookup.result); } ();
if (lookup.retcode == -1)