gRPC的authority和user_agent应该怎么用?会有特殊功效吗? #3796
Unanswered
Benjamin1919
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://xtls.github.io/config/transports/grpc.html#grpcobject
官网文档对authority的解释很简单:一个字符串,可以当 Host 来用,实现一些其它用途。
然而这个功能加入后R佬还特意发了TG公告,所以authority有什么特别之处吗?是不是类似于websocket的Host?
关于user_agent的解释也很简单:设置 gRPC 的用户代理,可能能防止某些 CDN 阻止 gRPC 流量。
可是怎样设置user_agent才能防止CDN 阻止 gRPC 呢?有没有示例,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions