Skip to content

Commit

Permalink
Small fix in the initializer that was just reintroduced
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Nov 17, 2019
1 parent 84ce3eb commit 6ab8520
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/NioDNS/NioDNS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class NioDNS: Resolver {
#if swift(>=5.1)
let sockaddr = sockaddr_in6(sin6_family: sa_family_t(AF_INET6), sin6_port: in_port_t(port), sin6_flowinfo: flowinfo, sin6_addr: ipAddress, sin6_scope_id: scopeID)
#else
let sockaddr = sockaddr_in6(sin6_family: sa_family_t(AF_INET6), sin6_port: in_port_t(port), sin6_flowinfo: flowinfo, sin6_addr: in6_addr(__u6_addr: ipAddress), sin6_scope_id: scopeID)
let sockaddr = sockaddr_in6(sin6_family: sa_family_t(AF_INET6), sin6_port: in_port_t(port), sin6_flowinfo: flowinfo, sin6_addr: in6_addr(__in6_u: ipAddress), sin6_scope_id: scopeID)
#endif
#else
let size = MemoryLayout<sockaddr_in6>.size
Expand Down

0 comments on commit 6ab8520

Please sign in to comment.