listen on all interfaces
All checks were successful
Generic zig build / build (push) Successful in 9m46s

This commit is contained in:
Emil Lerch 2025-10-15 19:35:26 -07:00
parent 796259ceb6
commit 777f0a1016
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -75,13 +75,13 @@ pub fn main() !u8 {
);
defer db.close();
try stdout.print("Zetviel starting on http://localhost:{d}\n", .{port});
try stdout.print("Zetviel starting on http://0.0.0.0:{d}\n", .{port});
try stdout.flush(); // flush before we listen
// Create HTTP server
var server = try httpz.Server(*root.NotmuchDb).init(allocator, .{
.port = port,
.address = "127.0.0.1",
.address = "0.0.0.0",
}, &db);
defer server.deinit();