Skip to content

Commit

Permalink
zig- allow outside clients to access server
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Sep 13, 2021
1 parent d649491 commit d55aac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn main() !void {
std.log.info("starting server on port {d}", .{port});
try http.listenAndServe(
alloc,
try std.net.Address.parseIp("127.0.0.1", port),
try std.net.Address.parseIp("0.0.0.0", port),
{},
comptime handler.getHandler(oa2),
);
Expand Down

0 comments on commit d55aac3

Please sign in to comment.