mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-21 00:34:50 +00:00
Use FAIL as the default dest if unable to parse
This commit is contained in:
@@ -86,7 +86,7 @@ fn parseDest(in: ?[]const u8) ![4]u8 {
|
|||||||
const addr = try std.net.Ip4Address.parse(dest, 0);
|
const addr = try std.net.Ip4Address.parse(dest, 0);
|
||||||
return @bitCast(addr.sa.addr);
|
return @bitCast(addr.sa.addr);
|
||||||
}
|
}
|
||||||
return .{ 70, 70, 70, 70 };
|
return "FAIL".*;
|
||||||
}
|
}
|
||||||
|
|
||||||
const builtin = @import("builtin");
|
const builtin = @import("builtin");
|
||||||
|
|||||||
Reference in New Issue
Block a user