Skip to content

Commit

Permalink
sockets(windows): fix resolveIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alaviss committed Feb 14, 2024
1 parent b8b7ad8 commit 91ff4af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/private/sockets_windows.nim
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ template ipResolve() {.dirty.} =
result = new ResolverResultImpl

let hints = AddrInfoW(
ai_flags:
ai_flags: AI_ADDRCONFIG,
ai_family:
if isNone(kind):
AF_UNSPEC
else:
case kind.get
of V4: AF_INET
of V6: AF_INET6,
ai_family: AF_INET
of V6: AF_INET6
)

let err = GetAddrInfoW(
Expand Down

0 comments on commit 91ff4af

Please sign in to comment.