Remove protocol check from socket

This commit is contained in:
Jeremy Soller
2018-09-17 15:01:31 -06:00
parent 13cd7d5a5f
commit 35bdab7690
+4 -4
View File
@@ -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 {