修订示例,文档

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent ac7024cd3e
commit 2b23891c51
3 changed files with 8 additions and 1 deletions

View File

@@ -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默认是关闭的。

View File

@@ -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在后, 且都不能为空

View File

@@ -8,7 +8,7 @@ import (
"github.com/e1732a364fed/v2ray_simple/utils"
)
//用于 tproxy tun/tap 这种 只有 网络层 和传输层的情况
//用于 tproxy tun/tap 这种 只有 网络层 和传输层的情况
type LesserConf struct {
Addr string
Tag string