Skip to content

Commit ed3a562

Browse files
authored
Merge pull request #1247 from arjunkomath/main
feat: support listening on IPv6
2 parents cdd7399 + fd5fbe3 commit ed3a562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn run(gpa: Allocator, arena: Allocator, sighandler: *SigHandler) !void {
108108
switch (args.mode) {
109109
.serve => |opts| {
110110
log.debug(.app, "startup", .{ .mode = "serve" });
111-
const address = std.net.Address.parseIp4(opts.host, opts.port) catch |err| {
111+
const address = std.net.Address.parseIp(opts.host, opts.port) catch |err| {
112112
log.fatal(.app, "invalid server address", .{ .err = err, .host = opts.host, .port = opts.port });
113113
return args.printUsageAndExit(false);
114114
};

0 commit comments

Comments
 (0)