mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 02:22:43 +00:00
test: correct trusted proxy X-Forwarded-For expectation
This commit is contained in:
@@ -157,7 +157,7 @@ describe("resolveGatewayClientIp", () => {
|
|||||||
forwardedFor: "198.51.100.99, 10.0.0.9, 127.0.0.1",
|
forwardedFor: "198.51.100.99, 10.0.0.9, 127.0.0.1",
|
||||||
trustedProxies: ["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", () => {
|
it("fails closed when trusted proxy headers are missing", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user