| ... | ... | @@ -1271,7 +1271,7 @@ pub const TcpServer = struct { |
| 1271 | 1271 | pub fn listen(self: *TcpServer, address: IpAddress) !void { |
| 1272 | 1272 | const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0; |
| 1273 | 1273 | const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock; |
| 1274 | | const sockfd = try os.socket(os.AF_INET, sock_flags, os.PROTO_tcp); |
| 1274 | const sockfd = try os.socket(os.AF_INET, sock_flags, os.IPPROTO_TCP); |
| 1275 | 1275 | self.sockfd = sockfd; |
| 1276 | 1276 | errdefer { |
| 1277 | 1277 | os.close(sockfd); |