Use FAIL as the default dest if unable to parse

This commit is contained in:
2025-04-27 16:11:12 -04:00
parent c34748dab3
commit e847989592

View File

@@ -86,7 +86,7 @@ fn parseDest(in: ?[]const u8) ![4]u8 {
const addr = try std.net.Ip4Address.parse(dest, 0);
return @bitCast(addr.sa.addr);
}
return .{ 70, 70, 70, 70 };
return "FAIL".*;
}
const builtin = @import("builtin");