mirror of
https://github.com/cfal/shoes.git
synced 2026-11-25 08:05:53 +00:00
Requiring a secret header is the main reason to set matching_headers, but only shoes-to-shoes tests exercised it. Run pinned Xray and Mihomo Alpha clients against a Shoes server that requires X-Tunnel-Key: all three modes on H2, plus packet-up on H1 and H3. Packet-up issues a GET and many POSTs per session, and H1 uses Xray's raw-request upload path, so each request type must carry the header. Payloads are checked byte for byte as in the other matrix cases. Clients that omit the header or send a wrong value must fail without the destination being dialed, reusing the wrong-UUID assertions. Xray replaces top-level xhttpSettings with extra except host, path and mode, so the header goes under extra like the fixture's other settings.