Skip to content

Commit

Permalink
fix(#85) use of reuse_port deprecated (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
definitepotato authored Feb 10, 2025
1 parent 6048579 commit 5f326bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/04-01.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn main() !void {
const loopback = try net.Ip4Address.parse("127.0.0.1", 0);
const localhost = net.Address{ .in = loopback };
var server = try localhost.listen(.{
.reuse_port = true,
.reuse_address = true,
});
defer server.deinit();

Expand Down

0 comments on commit 5f326bc

Please sign in to comment.