Skip to content
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

关于 TLSObject 中 serverName 配置项的描述过于含糊 #62

Closed
floatingrain opened this issue Oct 9, 2020 · 2 comments
Closed

Comments

@floatingrain
Copy link
Contributor

指定服务器端证书的域名,在连接由 IP 建立时有用。当目标连接由域名指定时,比如在 Socks 入站时接收到了域名,或者由 Sniffing 功能探测出了域名,这个域名会自动用于 serverName,无须手动配置。

该段描述存在以下疑点:

  • “连接”和“目标连接”是指客户端与被代理的网站还是指与代理服务器的连接?

  • 相应地,域名是指服务器的域名还是被代理网站的域名?

@ghost
Copy link

ghost commented Oct 9, 2020

确实,我一开始读的时候也觉得挺误导的。我觉得应该分为服务端和客户端来描述更加有条理一些。

客户端:
指定用于验证服务器端证书的域名,在 address 为 IP 指定时有用。当 address 由域名指定时,这个域名会自动用于 serverName,无须手动配置。

@floatingrain
Copy link
Contributor Author

另外,还应该注明,使用 quic 的时候 tlsSettings 两边都应该加上 serverName ,否则会造成 missing port 的报错并且无法正常使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant