From e90d9daf775a3166b219d6238496221b17c543e4 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sun, 16 Oct 2022 05:48:36 -0700 Subject: [PATCH] Serve on ipv6 by default --- src/main/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.zig b/src/main/main.zig index f3c9728..5870bc2 100644 --- a/src/main/main.zig +++ b/src/main/main.zig @@ -102,7 +102,7 @@ pub fn main() !void { var api_src = try api.ApiSource.init(&pool); var srv = std.net.StreamServer.init(.{ .reuse_address = true }); defer srv.deinit(); - try srv.listen(std.net.Address.parseIp("0.0.0.0", 8080) catch unreachable); + try srv.listen(std.net.Address.parseIp("::1", 8080) catch unreachable); var i: usize = 0; while (i < cfg.worker_threads - 1) : (i += 1) {