8000 GitHub - jkfx/vmess2config: 订阅地址生成 V2Ray 负载均衡配置文件。
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

订阅地址生成 V2Ray 负载均衡配置文件。

License

Notifications You must be signed in to change notification settings

jkfx/vmess2config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

订阅地址生成 v2ray 负载均衡配置文件

脚本接受订阅地址,生成节点服务器 outbounds 列表,并且开启负载均衡。

可以指定默认开启监听的 socks 端口和 http 端口。

socks 默认端口 1080http 默认端口 2080

负载均衡策略为 leastPing ,会根据观测记录选择 HTTPS GET 请求完成时间最快的一个出站连接。

v5 支持了 leastload 选项。

Usage

usage: vmess2config.py [-h] [-u URL] [-f FILE] [-o OUT] [--socks_port SOCKS_PORT] [--http_port HTTP_PORT]

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     generate v2ray config file from subscribe link
  -f FILE, --file FILE  generate v2ray config file from filesystem
  -o OUT, --out OUT     speifiy generate v2ray config filename
  --socks_port SOCKS_PORT
                        socks inbound port
  --http_port HTTP_PORT
                        http inbound port

Examples

$> python3 vmess2config.py -u "http://subscribe.link?flag=v2ray"
$> python3 vmess2config.py -f "vmeeses.txt"

参考文档

About

订阅地址生成 V2Ray 负载均衡配置文件。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0