listen on all interfaces
All checks were successful
Generic zig build / build (push) Successful in 9m46s
All checks were successful
Generic zig build / build (push) Successful in 9m46s
This commit is contained in:
parent
796259ceb6
commit
777f0a1016
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue