Serve on ipv6 by default

This commit is contained in:
jaina heartles 2022-10-16 05:48:36 -07:00
parent e4cbb0acc3
commit e90d9daf77
1 changed files with 1 additions and 1 deletions

View File

@ -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) {