Ericwyn / v2sub

linux 上 v2ray 订阅获取工具, 已支持 just my sockets 获取 vmess 配置
47 stars 12 forks source link

The -c flag moved to run subcommand in new version of v2ray(v2fly version) #3

Closed developerworks closed 8 months ago

developerworks commented 1 year ago

Please consider make a compatibility The new version of v2ray command line has a new run subcommand

V2Ray 5.7.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.4 linux/amd64) A unified platform for anti-censorship.

(base) ➜  v2sub git:(main) ./v2sub -conn start         
[v2sub-INFO] [1002-012905] load config msg success
[v2sub-INFO] [1002-012905] start v2ray ......
[v2sub-INFO] [1002-012905] use config is :   ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ 
[v2sub-INFO] [1002-012905] ========================================================================
[v2sub-INFO] [1002-012905] ID  别名                                              地址                    端口      类型 
[v2sub-INFO] [1002-012905]  1  ***              192.***.***.***         18950     none 
[v2sub-INFO] [1002-012905] ========================================================================
[v2sub-INFO] [1002-012905] v2ray config path : /etc/v2sub/config.json

flag provided but not defined: -config
Usage of /usr/local/bin/v2ray:
[v2sub-ERR ] [1002-012905] run command error[/usr/local/bin/v2ray -c /etc/v2sub/config.json]
[v2sub-ERR ] [1002-012905] exit status 2

Run with the command is OK

(base) ➜  v2sub git:(main) ✗ /usr/local/bin/v2ray run -c /etc/v2sub/config.json
V2Ray 5.7.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.4 linux/amd64)
A unified platform for anti-censorship.
2023/10/02 01:41:28 [Warning] V2Ray 5.7.0 started
Ericwyn commented 1 year ago

Good suggestion, I will try to add support

Ericwyn commented 8 months ago

version v1.0.4 fix this issue ~