From e3b0612db698908523b05500b189549c7b004ceb Mon Sep 17 00:00:00 2001 From: Yeon Vinzenz Varapragasam Date: Thu, 7 May 2026 14:50:00 +0200 Subject: [PATCH] fix(integration): handle percent_encoded host in extractLocalPort Zig 0.16's std.Uri.parse always stores host as .percent_encoded, never .raw. The .raw branch in extractLocalPort was therefore dead code, causing linked_tracker and linked_boilers to always appear empty even when correctly configured with local URLs. Fix: match both .raw and .percent_encoded in the switch. --- src/core/integration.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/integration.zig b/src/core/integration.zig index a51e827..6d62016 100644 --- a/src/core/integration.zig +++ b/src/core/integration.zig @@ -187,8 +187,7 @@ pub fn extractLocalPort(url: []const u8) ?u16 { const port = uri.port orelse return null; return switch (host) { - .raw => |value| if (isLocalHost(value)) port else null, - else => null, + .raw, .percent_encoded => |value| if (isLocalHost(value)) port else null, }; }