Serve on ipv6 by default
This commit is contained in:
parent
e4cbb0acc3
commit
e90d9daf77
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ pub fn main() !void {
|
||||||
var api_src = try api.ApiSource.init(&pool);
|
var api_src = try api.ApiSource.init(&pool);
|
||||||
var srv = std.net.StreamServer.init(.{ .reuse_address = true });
|
var srv = std.net.StreamServer.init(.{ .reuse_address = true });
|
||||||
defer srv.deinit();
|
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;
|
var i: usize = 0;
|
||||||
while (i < cfg.worker_threads - 1) : (i += 1) {
|
while (i < cfg.worker_threads - 1) : (i += 1) {
|
||||||
|
|
Loading…
Reference in a new issue