Explorar el Código

Remove protocol check from socket

Jeremy Soller hace 6 años
padre
commit
35bdab7690
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/platform/redox/socket.rs

+ 4 - 4
src/platform/redox/socket.rs

@@ -169,10 +169,10 @@ impl PalSocket for Sys {
             errno = syscall::EAFNOSUPPORT;
             return -1;
         }
-        if protocol != 0 {
-            errno = syscall::EPROTONOSUPPORT;
-            return -1;
-        }
+        // if protocol != 0 {
+        //     errno = syscall::EPROTONOSUPPORT;
+        //     return -1;
+        // }
 
         let mut flags = O_RDWR;
         if kind & SOCK_NONBLOCK == SOCK_NONBLOCK {