Parcourir la source

put back port

Tanner Nelson il y a 10 ans
Parent
commit
699d822c2c
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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 {
         #if os(Linux)
-            return port
-            //return htons(port)
+            return htons(port)
         #else
             let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
             return isLittleEndian ? _OSSwapInt16(port) : port