Files
v2ray_simple/examples/shadowTls.client.toml
e1732a364fed 3c754a0a89 feat: 实现 shadowTls v2;修订示例,文档,代码; 添加shadowTls的示例文件
shadowTls v2时客户端自动使用utls,且增强了探测防御

proxy.SetCommonReadTimeout -> netLayer.SetCommonReadTimeout

tlsLayer 配置也使用Extra,目前用于 shadowTls
2022-12-22 17:06:35 +08:00

31 lines
888 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[[listen]]
protocol = "socks5"
host = "127.0.0.1"
port = 10800
[[dial]]
protocol = "trojans"
tag = "t"
host = "cloud.tecent.com"
ip = "127.0.0.1"
port = 4433
uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
tls_type = "shadowTls2"
#extra = { tls_minVersion = "1.2",tls_maxVersion = "1.2" } # 用于 shadowTls v1
extra = { shadowtls_password = "a684455c-b14f-11ea-bf0d-42010aaa0003"} # 用于 shadowTls v2
# [dns]
# listen = "udp://127.0.0.1:8053"
# servers = [
# "udp://114.114.114.114:53",
# ]
# [dns.hosts]
# "cloud.tecent.com" = "127.0.0.1"
# 上面的dns模块用于在本机测试 shadowTls 功能. 将你的电脑的dns指向listen的地址, 然后在浏览器中输入 cloud.tecent.com,
# 应该能正常回落
# 不过如果使用了这个dns则你不能在本机同时开 server和client否则 server想向外拨 cloud.tecent.com 时就又回环到自己了。