This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new d28f39f THRIFT-5129: Fix swift TSocketTransport on Mac Client: Swift
Patch: Eric Chen
d28f39f is described below
commit d28f39fbc7bb9607a150544dd8f73f027c898c9b
Author: Eric Chen <[email protected]>
AuthorDate: Tue May 19 02:48:43 2020 -0700
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 57f6215..640612b 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<sockaddr_in>.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