Files
v2ray_simple/vlesss.client.toml
hahahrfool e75860ef7a 添加ws的0-rtt支持;兼容xray/v2ray; 修订示例文件
earlydata 的最大长度 本作直接固定为2048长度。

配置文件格式:

extra = { ws_earlydata = true }
2022-03-22 02:31:47 +08:00

61 lines
2.7 KiB
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.
# this is a verysimple standard client config
# toml 格式 要注意的是,字符串类型 必须用 引号括起来
[app] # app 项是可选的
# 日志等级, 0=debug, 1=info, 2=warning, 3=error,4=fatal,默认为1. 推荐测试时使用1, 服务端使用2或3
loglevel = 1
# 如果 default_uuid 给出了,且某个 需要uuid的地方没给出则会使用 default_uuid 的值
# default_uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
[[listen]]
tag = "my_socks5" # 可选, 但不可与其他tag重复
protocol = "socks5" # 必填
host = "127.0.0.1" # 必填, 可填ip或域名如果 network是unix的话要填一个文件名(不需要已存在,可以是完整路径).
port = 10800 # 必填
[[dial]]
tag = "my_vlesss1" # 可选, 但不可与其他tag重复
protocol = "vlesss" # vless 的 尾缀s 表示 使用tls
uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003" # 这个只是一个示例uuid,请自己生成一个新的.
host = "127.0.0.1"
#network = "udp"
# network 目前支持 tcp,udp 和unix;如果不给出则默认为 tcp; dial和listen都可配置此项
# network和用什么协议无关.比如我们可以硬把一个 ss协议的数据通过 unix socket来传输.
# ip = "127.0.0.1"
# 除了host之外也可使用 ip = "127.0.0.1"; 一般用了host就不需要再写ip,
# 但是如果用了cdn或者 tls的 insecure = false 的话, 就要单独提供 ip 和 host
# tls = true
# 除了在 protocol 字段使用 s尾缀 之外还可以明示使用tls.
# 这两种方法不可重复使用.我们首选前者, 更简约, 当然如果你使用时需要频繁开关tls那么可以单独列出来 便于配置
port = 4433
version = 0 # 协议版本, 可省略, 省略则默认为最老版本
insecure = true # 我们示例使用自签名证书,所以要开启 insecure. 实际场合请使用真证书并关闭 insecure
utls = true #是否使用 utls 来应用 chrome指纹进行伪装
# 如果要使用websocket层则 客户端和服务端 都要配置 advancedLayer 和 path
# advancedLayer = "ws"
# path = "/ohmygod_verysimple_is_very_simple" #为了防探测这里越长越随机越好
# route 是在我们代理界是分流的意思。 这一项是可选的,如果没给出的话,就不分流;
# 写了 mycountry 后, 向该国家的ip发送的请求就会直连, 然后其他的过代理
# mycountry的字母必须是两个而且必须大写。这个也会自动被用于顶级域名的国别分流
# 同时,必须要一个 GeoLite2-Country.mmdb 文件 放在verysimple的相同目录下. 详情见 README.md
# 具体的其它详细 分流配置请参考 z_multi.client.toml 和 z_multi.server.toml 文件, 因为会涉及到多个dial
[route]
mycountry = "CN"