Skip to content

Commit 69acfce

Browse files
committed
reuass address enabed
1 parent 2246520 commit 69acfce

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

frustr8tor/frustr8tor

20.2 KB
Binary file not shown.

smac/src/smac_st_net

0 Bytes
Binary file not shown.

smac/src/smac_st_net.zig

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const std = @import("std");
22
const net = std.net;
3+
const os = std.os;
34
const stdout = std.io.getStdOut().writer();
45
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
56
const gpa = general_purpose_allocator.allocator();
@@ -17,6 +18,7 @@ pub fn main() !void {
1718
}
1819

1920
var server = net.StreamServer.init(.{});
21+
server.reuse_address = true;
2022
defer server.deinit();
2123
try server.listen(net.Address.parseIp("0.0.0.0", 7979) catch unreachable);
2224
try stdout.print("Listening on {}\n", .{server.listen_address});

0 commit comments

Comments
 (0)