Skip to content

fix: treat NO_PROXY CIDR like modern curl - #2

Merged
hc-ui merged 2 commits into
mainfrom
cursor/curl-cidr-noproxy-aa74
Aug 26, 2026
Merged

hc-ui merged 2 commits into
mainfrom
cursor/curl-cidr-noproxy-aa74

Conversation

@hc-ui

@hc-ui hc-ui commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

改动

NO_PROXY 里的 CIDR(如 10.0.0.0/8、fd00::/8)按现代 curl 处理:落在网段内的主机走 DIRECT。Go 模型本来就会认 CIDR;本 PR 把 curl 模型对齐。

IPv6 用方括号主机([fd00::1])也覆盖了。

与 #1(suggest -o 写 bash / mkdir)互补。两边都冲了 0.4.1 — 先合一个再 rebase 另一个,只留一次版本 bump。

验证

PYTHONPATH=src python3 -m pytest -q tests/test_match.py 通过(含 IPv4 / IPv6 CIDR)。

@hc-ui
hc-ui marked this pull request as ready for review August 26, 2026 10:29
@hc-ui
hc-ui merged commit ab56eff into main Aug 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant