-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Authority to gRPC Transport #3076
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.
前排提醒 |
This comment was marked as off-topic.
This comment was marked as off-topic.
同域域前置也是有用的,比如说主域名不是你的,你只有一个子域名,但整个域名套了 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.
* main: (21 commits) Update 1.8.9 and dependencies Bump github.com/sagernet/sing from 0.3.5 to 0.3.6 Tempest isn't only for OpenRC Fix user download stats with splice add: Add a new xray wrapper Bump google.golang.org/grpc from 1.62.0 to 1.62.1 Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 Bump github.com/sagernet/sing from 0.3.4 to 0.3.5 Add initial check for burstObserver Bump golang.org/x/net from 0.21.0 to 0.22.0 Bump golang.org/x/crypto from 0.20.0 to 0.21.0 Bump github.com/sagernet/sing from 0.3.3 to 0.3.4 Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 Correctly propagate error in AuthenticationReader readBuffer chore: fix some errors detected by staticcheck (XTLS#3089) transport: add httpupgrade Add a linux script Bump github.com/sagernet/sing from 0.3.2 to 0.3.3 Add Authority to gRPC Transport (XTLS#3076) Doq (XTLS#3073) ...
这个有上面用? |
技术是在进步的,别人造出了你能看懂的好东西不可怕,最可怕的是别人干了但你看不懂别人在干什么或者说为什么要这么干,就像以前我写的很多东西一样, 我一直催 @yuhan6665 发 1.8.9 就是为了它, |
今天心血来潮,想研究一下凭啥 gRPC 不能设置 Host,遂发现它有 Authority 可以当 Host 来用这个 PR 可以实现 TLS ServerName 和 gRPC Authority 不同,已测试兼容 Cloudflare但是不能让 gRPC 控制 TLS,否则会报错两个值不同,故代码里做了分离这下 gRPC 也能“域前置”了,没有 ALPN 问题,三年前就该出的
客户端用,配置示例: