support nginx-1.31.0 - #343
Open
yuwenlong wants to merge 3 commits into
Open
Conversation
- 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 应用成功。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
proxy_connect_rewrite_103100.patchfor nginx 1.31.0 compatibility.Key Changes
All hunks apply cleanly to nginx 1.31.0.