Conversation
Why couldn't you have Host, for the last three years?
This comment was marked as off-topic.
This comment was marked as off-topic.
Member
|
前排提醒 |
This comment was marked as off-topic.
This comment was marked as off-topic.
Member
Author
同域域前置也是有用的,比如说主域名不是你的,你只有一个子域名,但整个域名套了 Cloudflare, 其它有些支持任意域前置和 gRPC 的 CDN 没测,大家测一下 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
这个有上面用? |
Member
Author
技术是在进步的,别人造出了你能看懂的好东西不可怕,最可怕的是别人干了但你看不懂别人在干什么或者说为什么要这么干,就像以前我写的很多东西一样, 我一直催 @yuhan6665 发 1.8.9 就是为了它, |
Closed
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
Why couldn't you have Host, for the last three years?
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.
今天心血来潮,想研究一下凭啥 gRPC 不能设置 Host,遂发现它有 Authority 可以当 Host 来用这个 PR 可以实现 TLS ServerName 和 gRPC Authority 不同,已测试兼容 Cloudflare但是不能让 gRPC 控制 TLS,否则会报错两个值不同,故代码里做了分离这下 gRPC 也能“域前置”了,没有 ALPN 问题,三年前就该出的
客户端用,配置示例: