Tanner Nelson 10 лет назад
Родитель
Сommit
699d822c2c
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      Sources/Socket.swift

+ 1 - 2
Sources/Socket.swift

@@ -198,8 +198,7 @@ public class Socket: Hashable, Equatable {
     
     
     private class func htonsPort(port: in_port_t) -> in_port_t {
     private class func htonsPort(port: in_port_t) -> in_port_t {
         #if os(Linux)
         #if os(Linux)
-            return port
-            //return htons(port)
+            return htons(port)
         #else
         #else
             let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
             let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
             return isLittleEndian ? _OSSwapInt16(port) : port
             return isLittleEndian ? _OSSwapInt16(port) : port