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 {
220220 /// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.
221221 /// Sets SO_REUSEADDR on Windows, which is roughly equivalent.
222222 reuse_address: bool = false,
223 /// Deprecated. Does nothing.
223 /// Deprecated. Does the same thing as reuse_address.
224224 reuse_port: bool = false,
225225 force_nonblocking: bool = false,
226226 };
......@@ -238,7 +238,7 @@ pub const Address = extern union {
238238 };
239239 errdefer s.stream.close();
240240
241 if (options.reuse_address) {
241 if (options.reuse_address or options.reuse_port) {
242242 try posix.setsockopt(
243243 sockfd,
244244 posix.SOL.SOCKET,