From d5c37d9122240fe95d308fbe15874e14dd786c5a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 21 Oct 2026 14:38:16 -0300 Subject: Build with Zig 0.17 --- src/quic.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quic.zig') diff --git a/src/quic.zig b/src/quic.zig index c78a79d..c372e0a 100644 --- a/src/quic.zig +++ b/src/quic.zig @@ -248,7 +248,7 @@ pub fn Quic(comptime ssl: type, comptime protocol: []const u8) type { switch (address) { .ip4 => |ip| { const addr: *libc.sockaddr.in = @ptrCast(out); - addr.* = .{ .port = std.mem.nativeToBig(u16, ip.port), .addr = @bitCast(ip.bytes) }; + addr.* = .{ .port = std.mem.nativeToBig(u16, ip.port), .addr = std.mem.bytesToValue(u32, &ip.bytes) }; return @sizeOf(libc.sockaddr.in); }, .ip6 => |ip| { -- cgit v1.3