mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-11 10:01:27 -10:00
bypassed() matched only exact entries and a leading "*". The bypass list Clash, v2rayN and xray write by default is `<local>;localhost;127.*;10.*; ...;192.168.*`, so every trailing-wildcard entry missed. It also lacked WinINET's implicit rule that loopback goes direct unless `<-loopback>` is listed. In the default auto mode, on Windows with such a system proxy, requests to local and LAN model endpoints went through the proxy: Ollama or LM Studio on 127.0.0.1, vLLM on 192.168.x. That added a hop, failed outright when the proxy routed to a remote exit, and made a cancelled stream keep the local model generating. Cancel closed only the client-to-proxy hop, and the proxy held its upstream connection open. This is why TestStreamCancelDoesNotReconnect hung on a developer machine with a system proxy. CI's Windows runners have no system proxy, and the package is not in the PR smoke set. "*" is now a wildcard anywhere in an entry. Only "*" is special, and brackets are trimmed from IPv6 entries. localhost, 127/8 and ::1 bypass unless `<-loopback>` is present. TestBypassed gains the trailing-wildcard, near-miss (192.169.* vs 192.168.*, 110.* vs 10.*), mid-pattern and loopback cases. It fails on 8 of them without the fix.