Skip to content

Support nginx-1.31.0 - #1

Merged
sha1 merged 3 commits into
sha1:pr1from
yuwenlong:master
Sep 9, 2026
Merged

sha1 merged 3 commits into
sha1:pr1from
yuwenlong:master

Conversation

@sha1

@sha1 sha1 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

yuwenlong added 3 commits May 19, 2026 13:30
- Add proxy_connect_rewrite_103100.patch for nginx 1.31.0
- nginx 1.31.0 has native CONNECT parsing, so no parse.c changes needed
- Reuse nginx 1.31.0's built-in host/port processing to populate
  connect_host and connect_port fields
- Wrap native CONNECT rejection with NGX_HTTP_PROXY_CONNECT guard
- Use new 4-argument ngx_http_validate_host API
nginx 1.31.3 将 ngx_http_process_request_header 中的 CONNECT 检查
重构为嵌套 if 结构,导致旧补丁 hunk chobits#2 上下文失配。
将 #if !(NGX_HTTP_PROXY_CONNECT) 的插入点前移至 cscf 赋值之前,
上下文只取四版本公共行,使补丁同时兼容 1.31.0-1.31.3。
已在 nginx 1.31.0/1.31.1/1.31.2/1.31.3 上验证全部 hunk 应用成功。
@sha1
sha1 changed the base branch from master to pr1 September 9, 2026 09:48
@sha1
sha1 merged commit 93e0994 into sha1:pr1 Sep 9, 2026
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.

2 participants