mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修订示例,文档
This commit is contained in:
@@ -40,7 +40,12 @@ headers.Pragma = ["no-cache"]
|
||||
|
||||
# 我们vs的header验证比v2ray严格,必须所有的header 均匹配才能通过。而v2ray默认只验证path等,不验证header。
|
||||
|
||||
|
||||
|
||||
[dial.header.response]
|
||||
# 如果使用 ws, 则 Connection头不用给出,因为必须是Upgrade; 你给出也是可以的,但是会被无视。
|
||||
#headers.Connection = [ "Upgrade" ]
|
||||
headers.mycustom2 = ["i_agree"]
|
||||
|
||||
|
||||
# dial.header.strict = true # 只有在strict开关打开时才会那么严格地检查header,默认是关闭的。
|
||||
|
||||
@@ -40,6 +40,8 @@ protocol = "socks5" # 必填, 作为本地入口 也可写为 http或者 socks5h
|
||||
host = "127.0.0.1" # 必填, 可填ip或域名;如果 network是unix的话,要填一个文件名(不需要已存在,可以是完整路径).
|
||||
port = 10800 # 必填
|
||||
|
||||
# 如果ip和host都 没给出,则默认为 127.0.0.1。 所以你的 listen 配置 必须给出正确的ip,比如 0.0.0.0, 否则客户端可能无法访问。
|
||||
|
||||
#uuid = "user:xx\npass:yy" # 可选. 本行 示范了 protocol为 socks5 或者 http时, 当 user为 xx 且 密码为 yy 时所需的配置.
|
||||
|
||||
# user的值的结尾的右侧 和 pass 的左侧 中间用 \n 分隔开。 你也可以使用toml的 多行字符串的语法。但是本示例为了清晰起见,还是明确把linefeed写出来了。 这个顺序不能改, 必须user在前 pass在后, 且都不能为空
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/e1732a364fed/v2ray_simple/utils"
|
||||
)
|
||||
|
||||
//用于 tproxy 和 tun/tap 这种 只有 网络层 和传输层的情况
|
||||
//用于 tproxy 或 tun/tap 这种 只有 网络层 和传输层的情况
|
||||
type LesserConf struct {
|
||||
Addr string
|
||||
Tag string
|
||||
|
||||
Reference in New Issue
Block a user