fix(utils): prioritize common ALPN protocols and use a single ALPN for Tuic nodes in Surge configuration.#326
Merged
geekdada merged 1 commit intosurgioproject:masterfrom Mar 8, 2026
Conversation
…r Tuic nodes in Surge configuration.
✅ Deploy Preview for surgio-documentation ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
geekdada
approved these changes
Mar 8, 2026
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.
Bug 修复: 生成 Surge 配置时,TUIC 只配置单个
alpn值( 优先选取 [h3] )关键:
在 Surge 中, TUIC 仅支持配置单个
alpn值复现:
当
alpn有多个值传入时,例如:则输出结果为:
alpn: h3,h2.http/1.1,导致 Surge 无法正常启动改进:
遇到上述情况时,预期输出为:
alpn: h3h3 > h2 > http/1.1