test: correct trusted proxy X-Forwarded-For expectation

This commit is contained in:
Vincent Koc
2026-02-21 00:48:22 -05:00
parent c01e486fc0
commit 59167f86ca

View File

@@ -157,7 +157,7 @@ describe("resolveGatewayClientIp", () => {
forwardedFor: "198.51.100.99, 10.0.0.9, 127.0.0.1",
trustedProxies: ["127.0.0.1"],
});
expect(ip).toBe("127.0.0.1");
expect(ip).toBe("10.0.0.9");
});
it("fails closed when trusted proxy headers are missing", () => {