mirror of
https://github.com/ziglang/zig.git
synced 2026-02-19 15:58:50 +00:00
std.net: fix std lib test regression. fixup
This commit is contained in:
parent
d943ce5dc7
commit
a8958c99a9
@ -220,7 +220,7 @@ pub const Address = extern union {
|
||||
/// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.
|
||||
/// Sets SO_REUSEADDR on Windows, which is roughly equivalent.
|
||||
reuse_address: bool = false,
|
||||
/// Deprecated. Does nothing.
|
||||
/// Deprecated. Does the same thing as reuse_address.
|
||||
reuse_port: bool = false,
|
||||
force_nonblocking: bool = false,
|
||||
};
|
||||
@ -238,7 +238,7 @@ pub const Address = extern union {
|
||||
};
|
||||
errdefer s.stream.close();
|
||||
|
||||
if (options.reuse_address) {
|
||||
if (options.reuse_address or options.reuse_port) {
|
||||
try posix.setsockopt(
|
||||
sockfd,
|
||||
posix.SOL.SOCKET,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user