配置文件local->listen, remote->dial;localServer->inServer, remoteClient->outClient.

增加了 -L 和 -D 命令行参数。如果没有配置文件存在的话,就会默认查看是否给定了 -L和-D参数.

如果配置文件没给定dial的话,默认就认为是 direct://
This commit is contained in:
hahahrfool
2022-03-17 14:08:49 +08:00
parent 6b53f3b03f
commit af8aadb370
5 changed files with 107 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
{
"local": "socks5://127.0.0.1:10800#myvlesss1",
"remote": "vlesss://a684455c-b14f-11ea-bf0d-42010aaa0003@127.0.0.1:4433?insecure=true&version=0",
"listen": "socks5://127.0.0.1:10800#myvlesss1",
"dial": "vlesss://a684455c-b14f-11ea-bf0d-42010aaa0003@127.0.0.1:4433?insecure=true&version=0",
"route":{ "mycountry":"CN" ,"comment":"route这一项是可选的,如果没给出的话,就不分流;写了mycountry后, 向该国家的ip发送的请求就会直连, 然后其他的过代理;本comment项你可以自行删掉, 注意要删的话, 连着前面的逗号一起删"}
}