authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-21 00:15:33-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 02:37:11-07:00
loga8958c99a9ecfd0a95dc8194b5a4fd172739b30e
tree7d0471072595fc9d3d252374aedfe96a1e05737d
parentd943ce5dc79d2438ac82bb8e32baa33d3105306d

std.net: fix std lib test regression. fixup


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/net.zig+2-2
...@@ -220,7 +220,7 @@ pub const Address = extern union {...@@ -220,7 +220,7 @@ pub const Address = extern union {
220 /// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.220 /// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.
221 /// Sets SO_REUSEADDR on Windows, which is roughly equivalent.221 /// Sets SO_REUSEADDR on Windows, which is roughly equivalent.
222 reuse_address: bool = false,222 reuse_address: bool = false,
223 /// Deprecated. Does nothing.223 /// Deprecated. Does the same thing as reuse_address.
224 reuse_port: bool = false,224 reuse_port: bool = false,
225 force_nonblocking: bool = false,225 force_nonblocking: bool = false,
226 };226 };
...@@ -238,7 +238,7 @@ pub const Address = extern union {...@@ -238,7 +238,7 @@ pub const Address = extern union {
238 };238 };
239 errdefer s.stream.close();239 errdefer s.stream.close();
240240
241 if (options.reuse_address) {241 if (options.reuse_address or options.reuse_port) {
242 try posix.setsockopt(242 try posix.setsockopt(
243 sockfd,243 sockfd,
244 posix.SOL.SOCKET,244 posix.SOL.SOCKET,