From d28f39fbc7bb9607a150544dd8f73f027c898c9b Mon Sep 17 00:00:00 2001 From: Eric Chen Date: Tue, 19 May 2020 02:48:43 -0700 Subject: [PATCH] THRIFT-5129: Fix swift TSocketTransport on Mac Client: Swift Patch: Eric Chen This closes #2149 --- lib/swift/Sources/TSocketTransport.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swift/Sources/TSocketTransport.swift b/lib/swift/Sources/TSocketTransport.swift index 57f62155e..640612b73 100644 --- a/lib/swift/Sources/TSocketTransport.swift +++ b/lib/swift/Sources/TSocketTransport.swift @@ -159,7 +159,7 @@ public class TSocketTransport : TTransport { var addr = sockaddr_in(sin_len: UInt8(MemoryLayout.size), sin_family: sa_family_t(AF_INET), sin_port: in_port_t(htons(UInt16(port))), - sin_addr: in_addr(s_addr: in_addr_t(0)), + sin_addr: hostAddr, sin_zero: (0, 0, 0, 0, 0, 0, 0, 0)) #endif