v2fly / discussion

5 stars 0 forks source link

Reload v2ray config without restarting v2ray. #64

Closed vVxiliVv closed 3 years ago

vVxiliVv commented 3 years ago

First my setup:

When somone registers on my site, his/her info gets stored in mysql .> ShadowsocksR (python multiuser) starts a server automatically, under 1 process -> v2ray starts with 1 user on a new port with that shadowsocks server as outbound, With this i am able to achive:

what i would like to achieve: Whenever somone registers, a script adds the new user to the inbound (vmess) and outbound (shadowsocks) to the server.json file and reloads the config.

The problem: As far as i know, v2ray needs to be closed and run again to read the changes wich has been made to the config file, this drops the connections wich is bad.

Is it possbile to reload the server.json file without actually closing v2ray so users won't get dropped?

Thanks!

kslr commented 3 years ago

I’d be willing to review a PR if you want to contribute a fix.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days